UnevenRoundedRectangle
A rectangular shape with rounded corners with different values, aligned inside the frame of the view containing it.
Declaration
import { UnevenRoundedRectangle } from 'swiftui-react-native';@frozen struct UnevenRoundedRectangleInitializers
2 SwiftUI initializers back <UnevenRoundedRectangle>. The props you pass pick one.
<UnevenRoundedRectangle
cornerRadii: SwiftUI.RectangleCornerRadii
roundedCornerStyle?: SwiftUI.RoundedCornerStyle
/>init(
cornerRadii: RectangleCornerRadii,
style: RoundedCornerStyle = .continuous
)cornerRadii*SwiftUI.RectangleCornerRadiithe radii of each corner.
roundedCornerStyleSwiftUI.RoundedCornerStylethe style of corners drawn by the shape.
Default
`.continuous`Swiftstyle: RoundedCornerStyle
Also takes the common view props: modifiers, style and testID.
See also
More in Shapes.
- AnyShapeA type-erased shape value.
- CapsuleA capsule shape aligned inside the frame of the view containing it.
- CircleA circle centered on the frame of the view containing it.
- ConcentricRectangleA shape whose corners you configure, individually or uniformly, to be squared, rounded, or concentric relative to a container shape's corners.
- 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.
- DefaultGlassEffectShapeThe default shape applied by glass effects, a capsule.
- EllipseAn ellipse aligned inside the frame of the view containing it.
- OffsetShapeA shape with a translation offset transform applied to it.
- PathThe outline of a 2D shape.
- RectangleA rectangular shape aligned inside the frame of the view containing it.
- RotatedShapeA shape with a rotation transform applied to it.
- RoundedRectangleA rectangular shape with rounded corners, aligned inside the frame of the view containing it.