Created
June 2, 2021 09:19
-
-
Save iosdevie/b98467b69317f0ae272ad4676356a40c 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
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