Skip to content

Instantly share code, notes, and snippets.

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