What Is a View?
Learn the View protocol and the body computed property.
Everything Is a View
In SwiftUI, almost everything you see on screen is a view. Text, images, buttons, and even your whole screen are all views. 📱
The View Protocol
A view is any type that conforms to the View protocol. Conforming means you promise to describe what should appear on screen.
struct ContentView: View {
var body: some View {
Text("Hello!")
}
}