One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

RectangleCornerInsets

struct · iOS 26.0+ · SDK 27.1

@frozen struct RectangleCornerInsets

The inset sizes for the corners of a rectangle.

Members (10)

init · iOS 26.0+

init

TypeScript
static initTopLeadingTopTrailingBottomLeadingBottomTrailing(topLeading: { width: number; height: number }, topTrailing: { width: number; height: number }, bottomLeading: { width: number; height: number }, bottomTrailing: { width: number; height: number }): RectangleCornerInsets
Swift declaration
init(topLeading: CGSize, topTrailing: CGSize, bottomLeading: CGSize, bottomTrailing: CGSize)
get · iOS 26.0+

topLeading

TypeScript
get topLeading(): { width: number; height: number }
Swift declaration
var topLeading: CGSize

The size of the top-leading corner inset.

set · iOS 26.0+

topLeading

TypeScript
set topLeading(value: { width: number; height: number })
Swift declaration
var topLeading: CGSize

The size of the top-leading corner inset.

get · iOS 26.0+

topTrailing

TypeScript
get topTrailing(): { width: number; height: number }
Swift declaration
var topTrailing: CGSize

The size of the top-trailing corner inset.

set · iOS 26.0+

topTrailing

TypeScript
set topTrailing(value: { width: number; height: number })
Swift declaration
var topTrailing: CGSize

The size of the top-trailing corner inset.

get · iOS 26.0+

bottomLeading

TypeScript
get bottomLeading(): { width: number; height: number }
Swift declaration
var bottomLeading: CGSize

The size of the bottom-leading corner inset.

set · iOS 26.0+

bottomLeading

TypeScript
set bottomLeading(value: { width: number; height: number })
Swift declaration
var bottomLeading: CGSize

The size of the bottom-leading corner inset.

get · iOS 26.0+

bottomTrailing

TypeScript
get bottomTrailing(): { width: number; height: number }
Swift declaration
var bottomTrailing: CGSize

The size of the bottom-trailing corner inset.

set · iOS 26.0+

bottomTrailing

TypeScript
set bottomTrailing(value: { width: number; height: number })
Swift declaration
var bottomTrailing: CGSize

The size of the bottom-trailing corner inset.

init · iOS 26.0+

init

TypeScript
static init(): RectangleCornerInsets
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →