Components
AllowsHitTesting
AllowsHitTesting adapts SwiftUI's `allowsHitTesting(_:)` modifier into an explicit interaction wrapper for web overlays and disabled hit regions.
AllowsHitTesting adapts SwiftUI's `allowsHitTesting(_:)` modifier into an explicit interaction wrapper for web overlays and disabled hit regions.
Examples
Enabled
Preview unavailable for this example in the static docs build.
Show code
<AllowsHitTesting>
<Button>Primary action</Button>
</AllowsHitTesting>Variants
Preview unavailable for this example in the static docs build.
Show code
<VStack spacing={12}>
<Card>
<Text>Background content</Text>
</Card>
<AllowsHitTesting enabled={false}>
<Button>Overlay action</Button>
</AllowsHitTesting>
</VStack>API
| Prop | Type | Required | Description |
|---|---|---|---|
enabled | boolean | No | No description yet. |
Inherits additional props from IBaseComponent.
Overview
AllowsHitTesting adapts SwiftUI's allowsHitTesting(_:) modifier into an explicit interaction wrapper for web overlays and disabled hit regions.
Status: adapted