
Tested on Xcode Version 14.0 beta 2 (14A5229c).
There’s a .refreshable
modifier that I can call on a List
, but I can’t use it everywhere.
An environment variable is available to views that don’t have access to it, and it looks like this:
@Environment(\.refresh) var refreshAction: RefreshAction?
Here’s a simple Button
that …
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.