I was under the impression that private
vars weren't synthesised in @Observable
classes.
When I tried to use a lazy var, I get the error 'lazy' cannot be used on a computed property
, which I infer as meaning the var is the synthesised version.
@Observable class MyClass {
private lazy var something = ""
}
Am I missing something here?
Thanks