Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

presentationContentInteraction(_:)

A view modifier that maps SwiftUI's presentationContentInteraction.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.presentationContentInteraction(behavior: PresentationContentInteraction): Modifier

Overview

Modifier.presentationContentInteraction(behavior = PresentationContentInteraction.…)

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

nonisolated func presentationContentInteraction(_ behavior: PresentationContentInteraction) -> some View

Topics

Overloads

fun Modifier.presentationContentInteraction(behavior: PresentationContentInteraction): Modifier
SwiftUI View.presentationContentInteraction(_:)