Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

backgroundStyle(_:)

A view modifier that maps SwiftUI's backgroundStyle.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.backgroundStyle(style: ShapeStyle): Modifier

Overview

Modifier.backgroundStyle(style = ShapeStyle.…)

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

nonisolated func backgroundStyle<S>(_ style: S) -> some View where S : ShapeStyle

Topics

Overloads

fun Modifier.backgroundStyle(style: ShapeStyle): Modifier
SwiftUI View.backgroundStyle(_:)