Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

touchBarItemPrincipal(_:)

A view modifier that maps SwiftUI's touchBarItemPrincipal.

iOS: unavailable (no-op)macOS 14.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.touchBarItemPrincipal(principal: Boolean = true): Modifier

Overview

Modifier.touchBarItemPrincipal()

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

nonisolated func touchBarItemPrincipal(_ principal: Bool = true) -> some View

Topics

Overloads

fun Modifier.touchBarItemPrincipal(principal: Boolean = true): Modifier
SwiftUI View.touchBarItemPrincipal(_:)