Created
June 9, 2021 10:17
-
-
Save iosdevie/af2df84e9b44f239b7f4b05a9d541880 to your computer and use it in GitHub Desktop.
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
var body: some View { | |
NavigationView { | |
List($colors){ $color in | |
Text(color.name) | |
} | |
.refreshable { | |
self.colors.append(Colors(name: "Newly added")) | |
} | |
.navigationTitle("Colors List") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment