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.