Skip to main content
These iOS-only modifiers style a List and its rows. listStyle sets the overall list appearance; listRowBackground and listRowSeparator adjust individual row chrome. listStyle is applied to the List itself; the row modifiers are applied to each item inside the list, not to the list container.

listStyle

Sets the visual style of a List.
string
required
The list style to apply:
  • "automatic" — the platform default style
  • "plain" — a plain list with no section styling
  • "insetGrouped" — grouped sections with inset rounded corners (default on iOS)
  • "grouped" — grouped sections with full-width backgrounds
  • "inset" — plain list with inset margins
  • "sidebar" — optimized for sidebar navigation
Plain list
Grouped list with sections
Sidebar style

listRowBackground

Sets the background view for a list row.
Component
required
The component to display as the row’s background.
Colored row background Apply to content inside a List’s ForEach.
Alternating row backgrounds
This modifier should be applied to the content views inside a List, not to the List itself. The background fills the entire row area, including under any separators.

listRowSeparator

Controls the visibility of list row separators.
"hidden" | "visible"
required
Whether the separator line below this row is visible or hidden.
Hiding separators
Selectively hiding separators

See also

  • List — the list container component
  • Scroll chromescrollContentBackground and other scroll-level modifiers
  • Section — group rows with header and footer