Error reported in Xcode: unknown attribute ‘observableobject’
Error reason:
@ObservableObject var vm: ViewModel = ViewModel()
Modify to the below:
@ObservedObject private var vm: ViewModel = ViewModel()
Error reported in Xcode: unknown attribute ‘observableobject’
Error reason:
@ObservableObject var vm: ViewModel = ViewModel()
Modify to the below:
@ObservedObject private var vm: ViewModel = ViewModel()