Building a Static List
Create a scrolling list of rows.
Meet List
A List is SwiftUI's go-to container for showing rows of content in a clean, scrolling column. 📜
List {
Text("First row")
Text("Second row")
}Rows Are Just Views
Anything you put inside a List becomes a row. A plain Text, an Image, or a whole stack each get their own tidy row.
List {
Text("Apples")
Image(systemName: "star")
}All lessons in this course
- Building a Static List
- Looping with ForEach
- Identifiable & Stable IDs
- Sections & List Styles