Creates a new set of corner radii for a rounded rectangle with
uneven corners.
- Parameters:
- topLeading: the radius of the top-leading corner.
- bottomLeading: the radius of the bottom-leading corner.
- bottomTrailing: the radius of the bottom-trailing corner.
- topTrailing: the radius of the top-trailing corner.
get · iOS 16.0+
topLeading
TypeScript
get topLeading(): number
Swift declaration
@export(implementation) var topLeading: CGFloat { get set }
The radius of the top-leading corner.
set · iOS 16.0+
topLeading
TypeScript
set topLeading(value: number)
Swift declaration
@export(implementation) var topLeading: CGFloat { get set }
The radius of the top-leading corner.
get · iOS 16.0+
topTrailing
TypeScript
get topTrailing(): number
Swift declaration
@export(implementation) var topTrailing: CGFloat { get set }
The radius of the top-trailing corner.
set · iOS 16.0+
topTrailing
TypeScript
set topTrailing(value: number)
Swift declaration
@export(implementation) var topTrailing: CGFloat { get set }
The radius of the top-trailing corner.
get · iOS 16.0+
bottomLeading
TypeScript
get bottomLeading(): number
Swift declaration
@export(implementation) var bottomLeading: CGFloat { get set }
The radius of the bottom-leading corner.
set · iOS 16.0+
bottomLeading
TypeScript
set bottomLeading(value: number)
Swift declaration
@export(implementation) var bottomLeading: CGFloat { get set }
The radius of the bottom-leading corner.
get · iOS 16.0+
animatableData
TypeScript
get animatableData(): AnimatablePair<AnimatablePair<number, number>, AnimatablePair<number, number>>
Swift declaration
var animatableData: RectangleCornerRadii.AnimatableData { get set }
The data to animate.
SwiftUI reads this property to capture the current vector
representation of the animatable state, and writes it back
on each animation frame with an interpolated value. The
default implementation returns ``EmptyAnimatableData``,
meaning nothing is animated.
Use the ``Animatable()`` macro to synthesize this
property automatically. Implement it by hand only when
you need custom interpolation logic such as clamping,
normalization, or mapping to a derived value.
set · iOS 16.0+
animatableData
TypeScript
set animatableData(value: AnimatablePair<AnimatablePair<number, number>, AnimatablePair<number, number>>)
Swift declaration
var animatableData: RectangleCornerRadii.AnimatableData { get set }
The data to animate.
SwiftUI reads this property to capture the current vector
representation of the animatable state, and writes it back
on each animation frame with an interpolated value. The
default implementation returns ``EmptyAnimatableData``,
meaning nothing is animated.
Use the ``Animatable()`` macro to synthesize this
property automatically. Implement it by hand only when
you need custom interpolation logic such as clamping,
normalization, or mapping to a derived value.
get · iOS 16.0+
bottomTrailing
TypeScript
get bottomTrailing(): number
Swift declaration
@export(implementation) var bottomTrailing: CGFloat { get set }
The radius of the bottom-trailing corner.
set · iOS 16.0+
bottomTrailing
TypeScript
set bottomTrailing(value: number)
Swift declaration
@export(implementation) var bottomTrailing: CGFloat { get set }