I\'m using Xcode 11 beta 5 and what I had it doesn\'t work anymore. This is my code:
struct ModeView : View { @EnvironmentObject var state: IntentionState v
The identified(by:) method has been deprecated, the correct syntax is now:
identified(by:)
init(Data, id: KeyPath, content: (Data.Element) -> Content)
or after moving the content into a closure :
ForEach(state.modes, id: \.self) { mode in Text(mode) }