SwiftUI Property Wrappers - State Binding StateObject EnvironmentObject Published ObservableObject

SwiftUI Property Wrappers - State Binding StateObject EnvironmentObject Published ObservableObject

4.869 Lượt nghe
SwiftUI Property Wrappers - State Binding StateObject EnvironmentObject Published ObservableObject
Understanding the most used property wrapper for SwiftUI Apps: @State, @Binding, @StateObject, @ObservedObject, @EnvironmentObject, ObservableObject Protocol and @Published. ▬▬▬▬▬▬▬▬▬▬ Articles ▬▬▬▬▬▬▬▬▬▬ Apple State and Data Flow https://developer.apple.com/documentation/swiftui/state-and-data-flow ▬▬▬▬▬▬▬▬▬▬ Chapters ▬▬▬▬▬▬▬▬▬▬ 0:00 - Intro 0:22 - State and Data Flow of SwiftUI Apps 1:11 - State & Binding 1:58 - State & Binding - Example 5:14 - StateObject & ObservedObject 6:15 - StateObject & ObservedObject - Example 7:44 - EnvironmentObject 8:41 - EnvironmentObject - Example 11:27 - End