SwiftUI Pull to Refresh Support

Hi,

Are there plans to add Pull to Refresh support to List or ScrollView in iOS14?

This is a large gap and the workarounds create other issues.
  1. Wrapping all my swiftui view content in a UIScrollView ViewRepresentable wrapper (leveraging the refreshControl property of ScrollView) causes other issues. Specifically NavigationLinks driven by Binding<Idenfiable> don’t present (presumably the nesting within a UIHostingController to sit within the UIScrollView breaks this somehow).

  2. Refresh controls usually render above the Large Navigation bar titles which aren’t exposed as Views. This means with approaches that use Preferences and geometry readers can’t get an accurate scroll offset (because large titles shrink and grow as the user scrolls)

I can probably work around this by doing all my navigation in UIKit, calling back from Views to some parent object (eg Navigation Coordinator) who can then manage pushing View controllers that wrap SwiftUI views in hosting controllers. But that is not ideal.

Has anyone had any luck with a Pull to refresh solution in SwiftUI with navigation? (other than introspecting the View tree for secret UITableViews etc)

I hope they already working on it...
Yes this is a big issue, going to have to revert to old school UIs with reload buttons..
I also want to know.
I found this: swiftui-lab.com/scrollview-pull-to-refresh

So far, this is the closest I've gotten to a pull to refresh that works. I was able to adapt it for my needs in one project.

That being said, there only seem to be a small handful of examples of people attempting this on their own, none of which work flawlessly. I'm really hoping to see native pull to refresh added simply so we're all doing it in a consistent and preferred manner.

It's very difficult to find working solution. Apple please address this feature asap
Same here
I also need this
Strange oversight.

Just a simple:
onPullToRefresh {

}
This is much-needed! I really hope they do this soon.
I would also appreciate a native Pull-to-refresh implementation. @Apple: Any plans to add this anytime soon?
I need this now!
Apple, please do something. I don't want to go back to UIKit.

in iOS15, refreshable is introduced!

https://developer.apple.com/documentation/swiftui/scrollview/refreshable(action:)/

Thank you for refreshable in SwiftUI 3!

When applied to a ScrollView it does not appear, but works with a List. Is it this something that can be supported in iOS 15?

SwiftUI Pull to Refresh Support
 
 
Q