Intro to SwiftUI — Part 2: The basics of views
10 min readJun 20, 2019
--
In the previous post, we learned about the new language features in Swift 5.1, such as opaque result types and function builders, which power the new declarative syntax of SwiftUI.
Now that we understand the basic syntax, it’s time to start exploring the basics of SwiftUI itself.
This post is all about understanding views — what views are, how views are laid…