ListStyle

A protocol that describes the behavior and appearance of a list.

ProtocoliOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+ListStyle in SwiftUI

Declaration

React
type ListStyle =
  | 'automatic'
  | 'grouped'
  | 'inset'
  | 'insetGrouped'
  | 'plain'
  | 'sidebar'
  | DefaultListStyle
  | GroupedListStyle
  | InsetGroupedListStyle
  | InsetListStyle
  | PlainListStyle
  | SidebarListStyle;
Swift
protocol ListStyle

Pass a literal, or build one with SwiftUI.ListStyle from import { SwiftUI } from 'swiftui-react-native'.

Type properties

  • 'automatic'SwiftUI.ListStyle.automatic

    The list style that describes a platform's default behavior and appearance for a list.

  • 'grouped'SwiftUI.ListStyle.grouped

    The list style that describes the behavior and appearance of a grouped list.

  • 'inset'SwiftUI.ListStyle.inset

    The list style that describes the behavior and appearance of an inset list.

  • 'insetGrouped'SwiftUI.ListStyle.insetGrouped

    The list style that describes the behavior and appearance of an inset grouped list.

  • 'plain'SwiftUI.ListStyle.plain

    The list style that describes the behavior and appearance of a plain list.

Used by

See also

More in Styles.