Part one: data flow and Redux
In this tutorial you are going to learn how to use State, ObservableObject and EnvironmentObject to share data between views and also how to transition between views using navigation link and sheet (modal transitions).
Binding is one of the several property wrappers that SwiftUI presents us to control data flow in the app. Binding provides us a reference like access to a value type. This week we will understand how and when to use binding. We will learn how to avoid common mistakes while using binding in SwiftUI.
Model-view controller was a long standing standard in design patterns used on Apple platforms. The structure of iOS apps we built was based on one core component present everywhere, the view controller. On WWDC19 the SwiftUI was introduced and it has no controller. Which direction are we, as developers, going to go is still a bit unclear.
...it’s time to touch the crucial aspect of every app, and it is data. All the apps have data to present or mutate. Data plays a vital role in apps using SwiftUI. Every view in SwiftUI is just a function of some state, where the state is our data.