RefreshUI is no longer available. I'm preferred to use Introspect. https://github.com/siteline/SwiftUI-Introspect
RefreshUI provide native refresh control to SwiftUI.
iOS | macOS |
---|---|
List {
ForEach(items, id: \.self) { (item) in
Text("\(item)")
}
}.onPull(perform: {
self.items.shuffle()
}, isLoading: isLoading)
RefreshUI is licensed under the MIT License. See the LICENSE file for more information.