Instance Property

widthTracksTextView

A Boolean that controls whether the receiver adjusts the width of its bounding rectangle when its text view is resized.

Declaration

var widthTracksTextView: Bool { get set }

Discussion

When the value of this property is true, the text container adjusts its width when the width of its text view changes. The default value of this property is false.

For more information about size tracking, see Text System Storage Layer Overview.

See Also

Defining the Container Shape

var size: CGSize

The size of the text container’s bounding rectangle.

var exclusionPaths: [UIBezierPath]

An array of path objects representing the regions where text is not displayed in the text container.

var lineBreakMode: NSLineBreakMode

The behavior of the last line inside the text container.

var containerSize: NSSize

The size of the receiver’s bounding rectangle.

Deprecated
var heightTracksTextView: Bool

A Boolean that controls whether the receiver adjusts the height of its bounding rectangle when its text view is resized.