SwiftUI view not updating when ObservableObject changes
SwiftUI, iOS 17, Xcode 16. I have a @StateObject viewModel in a parent, pass it to a child as @ObservedObject. The child shows a list from viewModel.items. When I append to items on a background thread after a network callback, the UI does not update. On the next unrelated state change it suddenly refreshes. Am I breaking the main-actor rule?
4 replies