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
ForEach syntax changed a little bit in Beta 5.
ForEach
Have you tried:
ForEach(state.modes, id: \.self) { mode in Text(mode) }