ButtonBorderShape
A shape used to draw a button's border.
Declaration
type ButtonBorderShape =
| 'automatic'
| 'buttonBorder'
| 'capsule'
| 'circle'
| 'roundedRectangle'
| { roundedRectangle: { radius: number; }; };struct ButtonBorderShapePass a literal, or build one with SwiftUI.ButtonBorderShape from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.ButtonBorderShape.automaticA shape that defers to the system to determine an appropriate shape for the given context and platform.
'capsule'SwiftUI.ButtonBorderShape.capsuleA capsule shape.
'circle'SwiftUI.ButtonBorderShape.circleA circular shape.
'roundedRectangle'SwiftUI.ButtonBorderShape.roundedRectangleA rounded rectangle shape.
Type methods
Overview
Use the View.buttonBorderShape(_:) view modifier to apply the shape to
bordered buttons within a view hierarchy.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Drawing and shapes.
- AngleA geometric angle whose value you access in either radians or degrees.
- AngularGradientAn angular gradient.
- AnyGradientA color gradient.
- BlendModeModes for compositing a view with overlapping content.
- ColorMatrixA matrix to use in an RGBA color transformation.
- ConcentricRectangleAnimatableDataThe type defining the data to animate.
- ContainerRelativeShapeA shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle.
- ContentShapeKindsA kind for the content shape of a view.
- CoordinateSpaceProtocolA frame of reference within the layout system.
- DefaultGlassEffectShapeThe default shape applied by glass effects, a capsule.
- EllipticalGradientA radial gradient that draws an ellipse.
- GlobalCoordinateSpaceThe global coordinate space at the root of the view hierarchy.