Ios swift – Why use @ObservableObject when you might as well use @StateObject?
I've been learning about swiftUI and @StateObject and @ObservedObject and thought I grasped it until I realized I could exchange @ObservedObject with @StateObject without any difference to the code behaviour. Consider this example: class SharedModel: ObservableObject { @Published var value:…