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