One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

RoundedRectangularShapeCorners

struct · iOS 26.0+ · SDK 27.1

struct RoundedRectangularShapeCorners

A type describing the corner styles of a ``RoundedRectangularShape``.

Members (16)

static · iOS 26.0+

concentric

TypeScript
static concentricMinimum(minimum?: (Edge_Corner_Style) | null): RoundedRectangularShapeCorners
Swift declaration
static func concentric(minimum: Edge.Corner.Style? = nil) -> RoundedRectangularShapeCorners

Corner styles will be concentric with its container, varying the radius as needed in all four corners but never going below zero, or the provided minimum corner style, if provided.

get · iOS 26.0+

concentric

TypeScript
static get concentric(): RoundedRectangularShapeCorners
Swift declaration
static var concentric: RoundedRectangularShapeCorners { get }

Corner styles will be concentric with its container, varying the radius as needed in all four corners.

init · iOS 26.0+

init

TypeScript
static initTopLeadingTopTrailingBottomLeadingBottomTrailing(topLeading?: Edge_Corner_Style, topTrailing?: Edge_Corner_Style, bottomLeading?: Edge_Corner_Style, bottomTrailing?: Edge_Corner_Style): RoundedRectangularShapeCorners
Swift declaration
init(topLeading: Edge.Corner.Style = 0, topTrailing: Edge.Corner.Style = 0, bottomLeading: Edge.Corner.Style = 0, bottomTrailing: Edge.Corner.Style = 0)

Create corner styles with per-corner styles. - Parameters: - topLeading: Top leading corner style. - bottomLeading: Bottom leading corner style. - topTrailing: Top trailing corner style. - bottomTrailing: Bottom trailing corner style.

get · iOS 26.0+

topLeading

TypeScript
get topLeading(): Edge_Corner_Style
Swift declaration
var topLeading: Edge.Corner.Style

The top leading corner style.

set · iOS 26.0+

topLeading

TypeScript
set topLeading(value: Edge_Corner_Style)
Swift declaration
var topLeading: Edge.Corner.Style

The top leading corner style.

get · iOS 26.0+

topTrailing

TypeScript
get topTrailing(): Edge_Corner_Style
Swift declaration
var topTrailing: Edge.Corner.Style

The top trailing corner style.

set · iOS 26.0+

topTrailing

TypeScript
set topTrailing(value: Edge_Corner_Style)
Swift declaration
var topTrailing: Edge.Corner.Style

The top trailing corner style.

get · iOS 26.0+

bottomLeading

TypeScript
get bottomLeading(): Edge_Corner_Style
Swift declaration
var bottomLeading: Edge.Corner.Style

The bottom leading corner style.

set · iOS 26.0+

bottomLeading

TypeScript
set bottomLeading(value: Edge_Corner_Style)
Swift declaration
var bottomLeading: Edge.Corner.Style

The bottom leading corner style.

get · iOS 26.0+

animatableData

TypeScript
get animatableData(): RoundedRectangularShapeCorners_AnimatableData
Swift declaration
var animatableData: RoundedRectangularShapeCorners.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 26.0+

animatableData

TypeScript
set animatableData(value: RoundedRectangularShapeCorners_AnimatableData)
Swift declaration
var animatableData: RoundedRectangularShapeCorners.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 26.0+

bottomTrailing

TypeScript
get bottomTrailing(): Edge_Corner_Style
Swift declaration
var bottomTrailing: Edge.Corner.Style

The bottom trailing corner style

set · iOS 26.0+

bottomTrailing

TypeScript
set bottomTrailing(value: Edge_Corner_Style)
Swift declaration
var bottomTrailing: Edge.Corner.Style

The bottom trailing corner style

init · iOS 26.0+

init

TypeScript
static initAll(all: Edge_Corner_Style): RoundedRectangularShapeCorners
Swift declaration
init(all: Edge.Corner.Style)

Create corner styles with all corner having the same style. - Parameter all: corner style for all corners.

static · iOS 26.0+

fixed

TypeScript
static fixed(radius: number): RoundedRectangularShapeCorners
Swift declaration
static func fixed(_ radius: CGFloat) -> RoundedRectangularShapeCorners

Corner styles with fixed radius in all four corners.

subscript · iOS 26.0+

subscript

TypeScript
subscript(corner: Edge_Corner): Edge_Corner_Style
Swift declaration
subscript(corner: Edge.Corner) -> Edge.Corner.Style { get }

Returns the corner style for a provided corner.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →