I have an array of "Groups" in a dictionary defined with [String: [AnyObject]]
I am trying to do a ForEach with this array in a SwiftUI View but getting: Cannot convert value of type 'String' to expected argument type 'Range<Int>' and Referencing initializer 'init(_:content:)' on 'ForEach' requires that '[String : [AnyObject]]' conform to 'Identifiable'
My code is:
I am trying to do a ForEach with this array in a SwiftUI View but getting: Cannot convert value of type 'String' to expected argument type 'Range<Int>' and Referencing initializer 'init(_:content:)' on 'ForEach' requires that '[String : [AnyObject]]' conform to 'Identifiable'
My code is:
Code Block var body: some View { NavigationView { List { ForEach(user.groups["groups"]) { group in } } } }