Why SwiftUI @State property can be initialized inside `init` this OTHER way:

I thought about it too. I think setter might be called if StateObject.init(wrappedValue:) is implemented by calling the wrappedValue setter.

I actually have the same question on @mayoff's explain here, where he assumes wrappedValue's setter is called in State(wrappedValue:).

1 Like