Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

presentationDetents(_:)

A view modifier that maps SwiftUI's presentationDetents.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.presentationDetents(detents: Set<PresentationDetent>): Modifier

Overview

Modifier.presentationDetents(detents = Set.…)

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

nonisolated func presentationDetents(_ detents: Set<PresentationDetent>) -> some View

Topics

Overloads

fun Modifier.presentationDetents(detents: Set<PresentationDetent>): Modifier
SwiftUI View.presentationDetents(_:)