Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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