Last active
June 15, 2021 06:07
-
-
Save shameemreza/b452fde543fc427ca1861560e77195aa to your computer and use it in GitHub Desktop.
refreshable()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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