Ios swift – Why does the View not hold the ViewModel with @Observable in SwiftUI?
I'm trying to use @Observable, but I've noticed that the View doesn't holt the ViewModel with @State. Every time when something changes in the ContentView, just like a letter in a TextField, the ViewModel calls the init. Why does this…