Converting
class Model: ObservableObject {
@AppStorage("prop0") var prop0 = 0
}
to
@Observable struct Model {
@AppStorage("prop0") var prop0 = 0
}
created error: Property wrapper cannot be applied to a computed property
How can properties of @Observable
models be saved in user defaults?