SwiftUI.cc
SwiftUI API tag

selection SwiftUI examples

Reference pages that use selection, with practical code and implementation notes.

Showing 1-3 of 3 reference pages

List renders platform-native rows from data. ForEach adds onDelete and onMove editing, and a selection binding turns rows tappable with single or multi-select.

5 min readOpen

Table presents multi-column data with selectable rows and sortable headers on Mac and iPad, collapsing gracefully to its first column on iPhone.

4 min readOpen

Define tabs with the Tab builder, switch programmatically through a selection binding, badge tab items, and adopt tabViewBottomAccessory plus tabBarMinimizeBehavior.

5 min readOpen