Swift 6 · SwiftUI basics
Show a list
List and ForEach build rows from identifiable data.
List(items) { item in
Text(item.name)
}
Official Swift 6 documentation
Swift 6 · SwiftUI basics
List and ForEach build rows from identifiable data.
List(items) { item in
Text(item.name)
}
Official Swift 6 documentation
Was this page helpful?