Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

alternatingRowBackgrounds(_:)

A view modifier that maps SwiftUI's alternatingRowBackgrounds.

iOS: unavailable (no-op)macOS 14.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.alternatingRowBackgrounds(behavior: AlternatingRowBackgroundBehavior = AlternatingRowBackgroundBehavior.enabled): Modifier

Overview

Modifier.alternatingRowBackgrounds()

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

nonisolated func alternatingRowBackgrounds(_ behavior: AlternatingRowBackgroundBehavior = .enabled) -> some View

Topics

Overloads

fun Modifier.alternatingRowBackgrounds(behavior: AlternatingRowBackgroundBehavior = AlternatingRowBackgroundBehavior.enabled): Modifier
SwiftUI View.alternatingRowBackgrounds(_:)