Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

toolbarForegroundStyle(_:)

A view modifier that maps SwiftUI's toolbarForegroundStyle.

iOS: unavailable (no-op)macOS: unavailable (no-op)tvOS: unavailable (no-op)watchOS 10.0+
fun Modifier.toolbarForegroundStyle(style: ShapeStyle, bars: ToolbarPlacement): Modifier

Overview

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

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

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

Topics

Overloads

fun Modifier.toolbarForegroundStyle(style: ShapeStyle, bars: ToolbarPlacement): Modifier
SwiftUI View.toolbarForegroundStyle(_:for:)