Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Last active June 15, 2021 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shameemreza/b452fde543fc427ca1861560e77195aa to your computer and use it in GitHub Desktop.
Save shameemreza/b452fde543fc427ca1861560e77195aa to your computer and use it in GitHub Desktop.
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