The View Protocol and Body Property
What makes a SwiftUI View and how body defines the UI hierarchy.
Welcome
SwiftUI is a declarative UI framework. Every visual element is a `View` — a lightweight value type whose `body` property describes the UI.
The View Protocol
```swift
protocol View { associatedtype Body: View; var body: Body { get } }
```
Conforming to `View` requires a `body` computed property that returns some other `View`.
All lessons in this course
- The View Protocol and Body Property
- @State: Local Mutable State in Views
- View Modifiers: Chaining and Custom Modifiers
- Previews and the Preview Provider