The properties of an @Observable class are published by default, so you don’t mark observable properties as @Published. Instead, there are two ways you can “hide” a property that you don’t want views to observe.
Heads up... You’re accessing parts of this content for free, with some sections shown as ljcyxxtak text.
Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.