SwiftUI.js
Components

Redacted

Redacted adapts SwiftUI's `redacted` modifier into an explicit placeholder or privacy wrapper on the web.

Redacted adapts SwiftUI's `redacted` modifier into an explicit placeholder or privacy wrapper on the web.

Examples

Placeholder

Preview unavailable for this example in the static docs build.

Show code
<VStack spacing={10}>
      <Redacted>
        <Text>Loading profile</Text>
      </Redacted>
      <Redacted>
        <Text>Recent activity</Text>
      </Redacted>
    </VStack>

Variants

Preview unavailable for this example in the static docs build.

Show code
<Redacted reason="privacy">
      <Text>Account balance</Text>
    </Redacted>

API

PropTypeRequiredDescription
activebooleanNoNo description yet.
reason'placeholder' | 'privacy'NoNo description yet.

Inherits additional props from IBaseComponent.

Overview

Redacted adapts SwiftUI's redacted modifier into an explicit placeholder or privacy wrapper on the web.

Status: adapted

On this page