Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

touchBarItemPresence(_:)

A view modifier that maps SwiftUI's touchBarItemPresence.

iOS: unavailable (no-op)macOS 14.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.touchBarItemPresence(presence: TouchBarItemPresence): Modifier

Overview

Modifier.touchBarItemPresence(presence = TouchBarItemPresence.…)

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

nonisolated func touchBarItemPresence(_ presence: TouchBarItemPresence) -> some View

Topics

Overloads

fun Modifier.touchBarItemPresence(presence: TouchBarItemPresence): Modifier
SwiftUI View.touchBarItemPresence(_:)