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
let suppose you have a name array like this:
let names = ["mike","Jack","jill"] ForEach(names, id: \.self) { Text($0) }
Text($0) - this will print all elements from your names array.
Text($0)
Note:
Use backslashsign.self instead .self, somehow backslash sign is not working here
backslashsign.self
.self