Declaration
compose().listRowSpacing(spacing: number | null)nonisolated func listRowSpacing(_ spacing: CGFloat?) -> some ViewParameters
spacing*number | nullThe spacing value to use. A value of
niluses the default spacing.
Discussion
The following example creates a List with 10 pts of spacing between each row:
List {
Text("Blue")
Text("Red")
}
.listRowSpacing(10.0)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.
- 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.
- moveDisabledAdds a condition for whether the view's view hierarchy is movable.