Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

redacted(_:)

A view modifier that maps SwiftUI's redacted.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.redacted(reason: RedactionReasons): Modifier

Overview

Modifier.redacted(reason = RedactionReasons.…)

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

nonisolated func redacted(reason: RedactionReasons) -> some View

Topics

Overloads

fun Modifier.redacted(reason: RedactionReasons): Modifier
SwiftUI View.redacted(reason:)