One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Edge.Corner.Style

struct · iOS 26.0+ · SDK 27.1

struct Style

A style that describes the corner of a rectangular shape. A corner can be square, rounded with a fixed-radius curve, or rounded with a curve that's concentric to the container shape. For more information on how to create a shape with configurable corner styles, see ``ConcentricRectangle``. - SeeAlso: ``ConcentricRectangle``, ``RoundedRectangularShape``

Members (7)

static · iOS 26.0+

concentric

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

A rounded corner style where the corner's radius shares a center point with the container shape's corner radius, with an optional minimum radius. When a corner is concentric to its container, the system calculates the corner radius to equal the container shape's corner radius minus the distance between corners. If the radius that the system calculates is less than the minimum radius you provide, the system uses the minimum radius. When the system calculates a zero radius, the corner is square.

get · iOS 26.0+

concentric

TypeScript
static get concentric(): Edge_Corner_Style
Swift declaration
static var concentric: Edge.Corner.Style { get }

A rounded corner style where the corner's radius shares a center point with the container shape's corner radius. When a corner is concentric to its container, the system calculates the corner radius to equal the container shape's corner radius minus the distance between corners. When the system calculates a zero radius, the corner is square.

init · iOS 26.0+

init

TypeScript
static initFloatLiteral(value: number): Edge_Corner_Style
Swift declaration
init(floatLiteral value: Edge.Corner.Style.FloatLiteralType)

Create a fixed corner style with a float value as its corner radius. This is a shorthand of writing `.fixed(value)`. - Parameter value: The fixed corner radius.

get · iOS 26.0+

animatableData

TypeScript
get animatableData(): Edge_Corner_Style_AnimatableData
Swift declaration
var animatableData: Edge.Corner.Style.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: Edge_Corner_Style_AnimatableData)
Swift declaration
var animatableData: Edge.Corner.Style.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.

init · iOS 26.0+

init

TypeScript
static initIntegerLiteral(value: number): Edge_Corner_Style
Swift declaration
init(integerLiteral value: Edge.Corner.Style.IntegerLiteralType)

Create a fixed corner style with an int value as its corner radius. This is a shorthand of writing `.fixed(value)`. - Parameter value: The fixed corner radius.

static · iOS 26.0+

fixed

TypeScript
static fixed(radius: number): Edge_Corner_Style
Swift declaration
static func fixed(_ radius: CGFloat) -> Edge.Corner.Style

A rounded corner style where the corner's radius is the value you provide. Provide a value of zero for a square corner.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →