Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

scrollDisabled(_:)

A view modifier that maps SwiftUI's scrollDisabled.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.scrollDisabled(disabled: Boolean): Modifier

Overview

Modifier.scrollDisabled(disabled = true)

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

nonisolated func scrollDisabled(_ disabled: Bool) -> some View

Topics

Overloads

fun Modifier.scrollDisabled(disabled: Boolean): Modifier
SwiftUI View.scrollDisabled(_:)