Declaration
compose().tableColumnHeaders(visibility: SwiftUI.Visibility)nonisolated func tableColumnHeaders(
_ visibility: Visibility
) -> some ViewParameters
visibility*SwiftUI.VisibilityA value of
visiblewill show table columns,hiddenwill remove them, andautomaticwill defer to default behavior.
Discussion
By default, Table will display a global header view with the labels
of each table column. This area is also where users can sort, resize,
and rearrange the columns. For simple cases that don't require those
features, this header can be hidden.
This will not affect the header of any Sections in a table.
Table(article.authors) {
TableColumn("Name", value: \.name)
TableColumn("Title", value: \.title)
}
.tableColumnHeaders(.hidden)See also
More in Lists and tables.
- deleteDisabledAdds a condition for whether the view's view hierarchy is deletable.
- listItemTintSets the tint effect for content in a list.
- listRowBackgroundPlaces a custom background view behind a list row item.
- listRowInsetsSets the insets of rows in a list on the specified edges.
- listRowSeparatorSets the display mode for the separator associated with this specific row.
- listRowSeparatorTintSets the tint color associated with a row.
- listRowSpacingSets the vertical spacing between two adjacent rows in a List.
- listSectionIndexVisibilityChanges the visibility of the list section index.
- listSectionMarginsSet the section margins for the specific edges.
- listSectionSeparatorSets whether to hide the separator associated with a list section.
- listSectionSeparatorTintSets the tint color associated with a section.
- listSectionSpacingSets the spacing between adjacent sections in a List to a custom value.