Pull Down Refresh Animation | SwiftUI
public
–
1 min read
Here's a collection of animations to refresh in data.
1. iOS 15+
NavigationView {
List(1..<100) { row in
Text("Row \(row)")
}
.refreshable {
print("write your pull to refresh logic here")
}
}
2. Simple Pull with icon
struct PullToRefresh: View {
var coordinateSpaceName: String
var onRefresh: ()->Void
@State var needRefresh: Bool100>…