Behind the scenes of UI: Part 2 - SwiftUI
You can say that UIKit is great, but SwiftUI is a future. But don’t hurry up to burry UIKit, as you will understand soon, it is still very useful to understand how SwiftUI works under the hood. SwiftUI is a declarative data-driven UI framework. Declarative means that you describe the desired UI and its behavior by providing the view’s body, and SwiftUI handles the internal implementation details. Data-driven (or state-driven) means that the UI is closely tied to the underlying data or state, and any changes in the state will be automatically reflected in the UI. SwiftUI conceals its entire render loop process behind the body of the view provided to us for constructing the View. Structure of the body defines both layout and content of the view. Let’s try to figure out what stands behind the body. DISCLAIMER: Things we will discuss next are not documented and we have no access to the actual SwiftUI code/implementation. So I will try to give a guess how it can possibly work to help you bu
V Vitaly Batrakov Senior iOS Engineer at Skip Part of series Behind the scenes of UI in iOS if you prefer to watch video you can find it here . You can say that UIKit is great, but SwiftUI is a future. But don’t hurry up to burry UIKit, as you will understand soon, it is still very useful to understand how SwiftUI works under the hood. SwiftUI is a declarative data-driven UI framework. Declarative means that you describe the desired UI and its behavior by providing the view’s body, and SwiftUI handles the internal implementation details. Data-driven (or state-driven) means that the UI is close
Explore this link on the map →related reading
- A Day in the Life of a SwiftUI View — Chris Eidhofchris.eidhof.nl
- What is SwiftUI? - a free SwiftUI by Example tutorialhackingwithswift.com
- SwiftUI View Lifecyclevadimbulavin.com
- Frequently asked questions about SwiftUI - a free SwiftUI by Example tutorialhackingwithswift.com
- SwiftUI by Example - free quick start tutorials for Swift developershackingwithswift.com
- Structural identity in SwiftUI | Swift with Majidswiftwithmajid.com
- What’s in the basic template? - a free SwiftUI by Example tutorialhackingwithswift.com
- Answering the big question: should you learn SwiftUI, UIKit, or both? - a free SwiftUI by Example tutorialhackingwithswift.com
- Towards a unified theory of reactive UI | Raph Levien’s blographlinus.github.io
- SwiftUI vs Interface Builder and storyboards - a free SwiftUI by Example tutorialhackingwithswift.com
- Building a menu using List - a free SwiftUI by Example tutorialhackingwithswift.com
- Learn Swift 4 - Learn Swift - Design+Codedesigncode.io