Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created September 19, 2021 04:54
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 laevandus/b9d482359bca6a906c9fa5a8bf8b964c to your computer and use it in GitHub Desktop.
Save laevandus/b9d482359bca6a906c9fa5a8bf8b964c to your computer and use it in GitHub Desktop.
struct ContentView: View {
@State var items = [1, 2, 3]
var body: some View {
List {
ForEach(items, id: \.self) { item in
Text("\(item)")
}
}
.listStyle(contentListStyle)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment