@State messing with initializer flow

Don't know if this is known

@State var resident: AnyResident

init(resident: AnyResident, home: Home?) {

    self._resident = State<AnyResident>(initialValue: resident) 

}

1 Like

As discussed in this thread, that's apparently not how you're supposed to do that, even if it appears to work.

1 Like