SwiftUI Property Wrappers - State Binding StateObject EnvironmentObject Published ObservableObject

preview_player
Показать описание
Understanding the most used property wrapper for SwiftUI Apps: @State, @Binding, @StateObject, @ObservedObject, @EnvironmentObject, ObservableObject Protocol and @Published.

▬▬▬▬▬▬▬▬▬▬ Articles ▬▬▬▬▬▬▬▬▬▬

Apple 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
Рекомендации по теме
Комментарии
Автор

beautifully explained, thanks for the extra little animation diagram that’s really helpful as well

JasInSyd
Автор

Thank you you have explained everything well.

Burhan
Автор

Thanks sir, I've learned something new which I don't know before that we can use EnvironmentObject to use any class in any struct I was using ObservedObject and passing the references to the other struct. Really amazing Thanks by the way.

AdnanAshraf-gr
Автор

This is great!! can you make a new video on how the new @Observable wrapper works? It's new to iOS 17 and i can't find many documentation/tutorials about it

SirBlank
Автор

Improve your mic bro, Its hard to listen anything. Had to drop mid way

shubhamk
Автор

Man, invest money into microphone, it is the best investment

АркадийСыновец-жу