Tables

Display selectable, sortable data, arranged in rows and columns.

Overview 概要

Use a table to display multiple values across a collection of elements. Each element in the collection appears in a different row of the table, while each value for a given element appears in a different column. When you create the table, you provide the collection of elements, and then tell the table how to find the needed value for each column. In simple cases, SwiftUI infers the element for each row, but you can also specify the row elements explicitly in more complex scenarios.

With a small amount of additional configuration, you can also make the items in the table selectable, and the columns sortable.

Topics 話題

Tables

Columns

Rows