Components
TextSelection
TextSelection adapts SwiftUI's `textSelection(_:)` modifier into an explicit wrapper that controls browser text selection semantics.
TextSelection adapts SwiftUI's `textSelection(_:)` modifier into an explicit wrapper that controls browser text selection semantics.
Examples
Enabled
Preview unavailable for this example in the static docs build.
Show code
<TextSelection>
<Card>
<Text>Copy this diagnostic string from the docs preview.</Text>
</Card>
</TextSelection>Variants
Preview unavailable for this example in the static docs build.
Show code
<VStack spacing={12}>
<TextSelection selection="disabled">
<Card>
<Text>Static summary content</Text>
</Card>
</TextSelection>
</VStack>API
| Prop | Type | Required | Description |
|---|---|---|---|
selection | 'enabled' | 'disabled' | No | No description yet. |
Inherits additional props from IBaseComponent.
Overview
TextSelection adapts SwiftUI's textSelection(_:) modifier into an explicit wrapper that controls browser text selection semantics.
Status: adapted