Modifiers
buttonBorderShape
Sets the border shape used by buttons within this view.
buttonBorderShape(shape, cornerRadius)
| Parameter | Type | Description |
|---|---|---|
shape | 'circle' | 'automatic' | 'roundedRectangle' | 'capsule' | The button border shape. |
cornerRadius(optional) | number | Corner radius, only used with 'roundedRectangle'. |
Sets the border shape used by buttons within this view.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- buttonBorderShape (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)