One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

TextProxy

struct · iOS 18.0+ · SDK 27.1

struct TextProxy

A proxy for a text view that custom text renderers use.

Members (1)

method · iOS 18.0+

sizeThatFits

TypeScript
sizeThatFits(proposal: ProposedViewSize): { width: number; height: number }
Swift declaration
func sizeThatFits(_ proposal: ProposedViewSize) -> CGSize

Returns the space needed by the text view, for a proposed size. - Parameter proposal: the proposed size of the text view. - Returns: the size that the text view requires for the given proposal.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →