Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

toolbarBackground(_:)

A view modifier that maps SwiftUI's toolbarBackground.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.toolbarBackground(style: ShapeStyle, bars: ToolbarPlacement): Modifier

Overview

Modifier.toolbarBackground(style = ShapeStyle.…, bars = ToolbarPlacement.…)

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

nonisolated func toolbarBackground<S>(_ style: S, for bars: ToolbarPlacement...) -> some View where S : ShapeStyle

Topics

Overloads

fun Modifier.toolbarBackground(style: ShapeStyle, bars: ToolbarPlacement): Modifier
SwiftUI View.toolbarBackground(_:for:)
fun Modifier.toolbarBackground(visibility: Visibility, bars: ToolbarPlacement): Modifier
SwiftUI View.toolbarBackground(_:for:)