Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
List not refreshing with EnvironmentObject
My guess it's because ForEach. Try to add some dumb view which will cause UI update outside of the loop. Something like this pseudo code;NavigationView {
Text(globalInfo.users.first? ?? "Default")
List {
ForEach(globalInfo.users.indices, id: \.self) { idx in
NavigationLink(destination: UserView(idx: idx)) {
Text(self.globalInfo.users[idx])
}
}
}...this is pseudo code, wrap it also into some kind of Stack view