Expo UI and Router for iOS
Modifiers

mask

Applies a mask to the view.

mask(shape, cornerRadius)

ParameterTypeDescription
shape'circle' | 'ellipse' | 'roundedRectangle' | 'capsule' | 'rectangle' | 'containerRelativeShape'The masking shape.
cornerRadius(optional)numberCorner radius for rounded rectangle (default: 8).

Applies a mask to the view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

This modifier works with any view. These components accept it:

Sources

The original Expo docs for this page:

  • mask (Modifiers) (source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)

On this page