SwiftUI
@StateObservable: A property wrapper for using an @Observable class as state without optionals or onAppear
Health warning: In general I would not recommend this approach. View data should be @State simple values or custom structs with mutating func for testable logic, passed down as let for read only, computed vars for transforming, or @Binding var for read/write. @Observable is designed for data models, e.g. loading Read more…