I have a ForEach loop in my code which is used to display text per child of an array (i think it's an array).
var flags: [String: Any] = [
"Flag1": "FlagValue"
// More values will go here, by default there are no values (but can be
// loaded in)
]
And this is my code
// CONTENT
HStack {
VStack {
ForEach(0...flags.count, id: \.self) { flag in
Text("hey")
}
}
}
When I start the app there's only one "hey" and no more will show up when I add more flags.