Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

selectionDisabled(_:)

A view modifier that maps SwiftUI's selectionDisabled.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.selectionDisabled(isDisabled: Boolean = true): Modifier

Overview

Modifier.selectionDisabled()

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

@export(implementation) nonisolated func selectionDisabled(_ isDisabled: Bool = true) -> some View

Topics

Overloads

fun Modifier.selectionDisabled(isDisabled: Boolean = true): Modifier
SwiftUI View.selectionDisabled(_:)