iOS Swift - State Management in SwiftUI
What happens if you replace
@StateObject with @ObservedObject in the code below?struct ContentView: View {
@StateObject var model = MyModel()
var body: some View { Text(model.text) }
}