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 aList.
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
listRowBackground
Sets the background view for a list row.Component
required
The component to display as the row’s background.
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.
See also
- List — the list container component
- Scroll chrome —
scrollContentBackgroundand other scroll-level modifiers - Section — group rows with header and footer