Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

listStyle(_:)

Sets the style of the lists in a view.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.listStyle(style: ListStyle): Modifier

Overview

Modifier.listStyle(ListStyle.insetGrouped)

This is the Kotlin form of SwiftUI View.listStyle(_:): SwiftUI documentation. In Swift it reads:

nonisolated func listStyle<S>(_ style: S) -> some View where S : ListStyle

Topics

Overloads

fun Modifier.listStyle(style: ListStyle): Modifier
SwiftUI View.listStyle(_:)