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.

Share

Session info:

Speaker: Daniel Steinberg

Storyteller at Dim Sum Thinking at Dim Sum Thinking

Date: 13 March 2024

Time: 09:00 - 12:30

Relevant tags:
iOS Swift

See all speakers

See all videos