Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
refreshable()
struct SomeView: View {
var body: some View {
VStack {
List(1...10) { item in
Text("Item number \(item)")
}
.refreshable {
//enter code to execute during refresh here
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment