Did you try to use publish ?
See details here: https://stackoverflow.com/questions/62740812/swiftui-observableobject-with-a-computed-property
Or here to use @Observable: https://medium.com/@jywvgkchm/understanding-observation-in-swift-simplifying-swiftui-development-73853a06e86a
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: