Skip to content
RED SAGSkills
medium10 pts · first answer countsswiftuistate-management

Owning an @Observable model

In SwiftUI on iOS 17 or later, a view creates and owns an instance of an @Observable class. How should the view store it so the instance survives when SwiftUI re-creates the view struct?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions