I have this array of dictionaries.
let deckColors = [
["name": "blue", "desc": "desc1"],
["name": "yellow", "desc": "desc2"],
]
And my view:
struct ContentView: View {
var body: some View {
ForEach(0 ..< deckColors.count) {value in
Text(deckColors[value]["name"])
}
}
}
How can I make it work? Currently getting this error: Protocol type Any
cannot conform to StringProtocol
because only concrete types can conform to protocols