When I start the app there's only one "hey" and no more will show up when I add more flags.
No, you get 2 heys, as explained by @B347
What you want is not clear at all.
what do you expect to get ?
display text per child: where are the children defined ?
where and how do you add flags ?
In any case, if you want view to be updated, flags should be a State var.
An advice: study an Apple tutorial on Swift and SwiftUI. It seems there are some basics you are still missing.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: