Contents

size

The size of the text container’s bounding rectangle.

Declaration

var size: CGSize { get set }

Discussion

This property defines the maximum size for the layout area returned from lineFragmentRect(forProposedRect:at:writingDirection:remaining:). A value of 0.0 or less means no limitation.

If you don’t specify an explicit size when you initialize a text container, the system uses a default large size of (10000000.0, 10000000.0).

See Also

Defining the container shape