One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Text.Layout.TypographicBounds

struct · iOS 17.0+ · SDK 27.1

@frozen struct TypographicBounds

The typographic bounds of an element in a text layout.

Members (12)

get · iOS 17.0+

rect

TypeScript
get rect(): { x: number; y: number; width: number; height: number }
Swift declaration
var rect: CGRect { get }

Returns a rectangle encapsulating the bounds.

get · iOS 17.0+

width

TypeScript
get width(): number
Swift declaration
var width: CGFloat

The width of the element.

set · iOS 17.0+

width

TypeScript
set width(value: number)
Swift declaration
var width: CGFloat

The width of the element.

get · iOS 17.0+

ascent

TypeScript
get ascent(): number
Swift declaration
var ascent: CGFloat

The ascent of the element.

set · iOS 17.0+

ascent

TypeScript
set ascent(value: number)
Swift declaration
var ascent: CGFloat

The ascent of the element.

get · iOS 17.0+

origin

TypeScript
get origin(): { x: number; y: number }
Swift declaration
var origin: CGPoint

The position of the left edge of the element's baseline, relative to the text view.

set · iOS 17.0+

origin

TypeScript
set origin(value: { x: number; y: number })
Swift declaration
var origin: CGPoint

The position of the left edge of the element's baseline, relative to the text view.

get · iOS 17.0+

descent

TypeScript
get descent(): number
Swift declaration
var descent: CGFloat

The descent of the element.

set · iOS 17.0+

descent

TypeScript
set descent(value: number)
Swift declaration
var descent: CGFloat

The descent of the element.

get · iOS 17.0+

leading

TypeScript
get leading(): number
Swift declaration
var leading: CGFloat

The leading of the element.

set · iOS 17.0+

leading

TypeScript
set leading(value: number)
Swift declaration
var leading: CGFloat

The leading of the element.

init · iOS 17.0+

init

TypeScript
static init(): Text_Layout_TypographicBounds
Swift declaration
@export(implementation) init()

Initializes to an empty bounds with zero origin.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →