Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

replaceDisabled(_:)

A view modifier that maps SwiftUI's replaceDisabled.

iOS 17.0+macOS 26.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.replaceDisabled(isDisabled: Boolean = true): Modifier

Overview

Modifier.replaceDisabled()

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

nonisolated func replaceDisabled(_ isDisabled: Bool = true) -> some View

Topics

Overloads

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