Data flow in SwiftUI is controlled by Property Wrappers
A Property wrapper is a simple generic class/struct that has some logic that gets triggered whenever the value of property gets modified. SwiftUI offers 17 property wrappers for our applications, each of which provide different functionality. . In the first version of my video of this topic, we covered @State, @Binding, @ObservedObject, @Published and @EnvironmentObject and we will repeat them again in this video but will also add in two more that were introduced in 2020; @StateObject and @AppStorage
We will take a very simple starter project and work our way though each of these different property wrappers so that by the end, you will hopefully have a clear understanding of when and how to use each of them in your own SwiftUI projects.
Starter Project:
[ Ссылка ]
Completed Project on GitHub:
[ Ссылка ]
References:
Donny Wals:
[ Ссылка ]
Majid:
[ Ссылка ]
John Sundell:
Sundell [ Ссылка ]
Previous links from first video
Sarar Unagar:
[ Ссылка ]
Majid:
[ Ссылка ]
Sarun:
[ Ссылка ]
Paul Hudson:
[ Ссылка ]
******** Download my StewartLynch YouTube Channel Application - Free ***********
[ Ссылка ]
Stewart Lynch's YouTube Channel
[ Ссылка ]
CreaTECH Solutions Website
[ Ссылка ]
Stewart Lynch's GitHub
[ Ссылка ]
Buy me a coffee :)
[ Ссылка ]
Ещё видео!