SwiftUI - Value of type '[Color]' has no member 'identified' SwiftUI - Value of type '[Color]' has no member 'identified' xcode xcode

SwiftUI - Value of type '[Color]' has no member 'identified'


For Xcode 11 Beta 5 and above, use:

ForEach(colors, id: \.self)

For Xcode 11 Beta 4 and below use:

ForEach(colors.identified(by: \.self))