Data flow in SwiftUI – from @State to SwiftData (part 1)
This fast moving workshop will examine the many ways we work with state in a SwiftUI app.
*We’ll begin with a quick look at the familiar case in which state that belongs to the View itself and look at some requirements and best practices for @State and @Binding.
*Next, we move the state to controllers and models and work with ObservableObjects and @Published.
*We briefly explore AsyncStreams and AsyncSequences before moving to the all-new Observable APIs.
*Finally, we see how easy it is to persist model data using the new SwiftData framework.