Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

dragConfiguration(_:)

A view modifier that maps SwiftUI's dragConfiguration.

iOS 27.0+macOS 26.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.dragConfiguration(configuration: DragConfiguration): Modifier

Overview

Modifier.dragConfiguration(configuration = DragConfiguration.…)

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

nonisolated func dragConfiguration(_ configuration: DragConfiguration) -> some View

Topics

Overloads

fun Modifier.dragConfiguration(configuration: DragConfiguration): Modifier
SwiftUI View.dragConfiguration(_:)