0Pricing
SwiftUI Academy · Lesson

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

  1. Building a Static List
  2. Looping with ForEach
  3. Identifiable & Stable IDs
  4. Sections & List Styles
← Back to SwiftUI Academy