Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
Give the model one explicit owner and pass access to child views according to their needs. View recreation should not accidentally recreate long-lived feature state.
SwiftUI can recreate view values while preserving state associated with a view identity. Select state and observation tools appropriate to the model system being used; Observable models and ObservableObject models have different wrappers. A child editing parent-owned data needs a suitable binding rather than a second independent copy. Test identity changes and navigation to ensure resets happen deliberately.