OneScript

listStyle

Set the native SwiftUI style for lists.

listStyle(value) sets the SwiftUI style for the current List or descendant Lists.

Supported values: automatic, plain, grouped, inset, insetGrouped, and sidebar.

import { List, Modifier, Text } from "onescript/views"

<List modifier={Modifier.listStyle("plain")}>
  <Text>Inbox</Text>
  <Text>Archive</Text>
</List>

How is this guide?

Last updated on