Creates a new rounded rectangle shape with uneven corners.
- Parameters:
- cornerRadii: the radii of each corner.
- style: the style of corners drawn by the shape.
get · iOS 16.0+
cornerRadii
TypeScript
get cornerRadii(): RectangleCornerRadii
Swift declaration
var cornerRadii: RectangleCornerRadii
The radii of each corner of the rounded rectangle.
set · iOS 16.0+
cornerRadii
TypeScript
set cornerRadii(value: RectangleCornerRadii)
Swift declaration
var cornerRadii: RectangleCornerRadii
The radii of each corner of the rounded rectangle.
get · iOS 16.0+
animatableData
TypeScript
get animatableData(): AnimatablePair<AnimatablePair<number, number>, AnimatablePair<number, number>>
Swift declaration
nonisolated var animatableData: RectangleCornerRadii.AnimatableData { get set }
The data to animate.
set · iOS 16.0+
animatableData
TypeScript
set animatableData(value: AnimatablePair<AnimatablePair<number, number>, AnimatablePair<number, number>>)
Swift declaration
nonisolated var animatableData: RectangleCornerRadii.AnimatableData { get set }
Describes this shape as a path within a rectangular frame of reference.
- Parameter rect: The frame of reference for describing this shape.
- Returns: A path that describes this shape.
get · iOS 16.0+
style
TypeScript
get style(): RoundedCornerStyle
Swift declaration
var style: RoundedCornerStyle
The style of corners drawn by the rounded rectangle.
set · iOS 16.0+
style
TypeScript
set style(value: RoundedCornerStyle)
Swift declaration
var style: RoundedCornerStyle
The style of corners drawn by the rounded rectangle.
Resolved corners given a size. If the corner style of a shape is
size-dependent, read the provided size and return values accordingly.
This function could be called with a nil size when the size hasn't been
determined. In that case, return the best approximated value.
For example, for a capsule shape, its corner radius is determined by the
size. If size is not available, return `.fixed(.infinity)` to indicate
that the corner should be as round as it could be.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UnevenRoundedRectangle.inset(by:)
This protocol needs associated types that cannot yet cross the bridge.