Skip to content

Instantly share code, notes, and snippets.

@iosdevie
Created June 2, 2021 09:19
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 iosdevie/b98467b69317f0ae272ad4676356a40c to your computer and use it in GitHub Desktop.
Save iosdevie/b98467b69317f0ae272ad4676356a40c to your computer and use it in GitHub Desktop.
struct ContentView: View {
@ObservedObject var fetcher = DataFetcher()
var body: some View {
List(fetcher.dataModel, children: \.children){
item in
HStack{
Image(systemName: item.icon)
Text(item.name)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment