Instance Property

heightTracksTextView

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

Declaration

iOS, Mac Catalyst, tvOS
@property(nonatomic) BOOL heightTracksTextView;
macOS
@property BOOL heightTracksTextView;

Discussion

When the value of this property is YES, the text container adjusts its height when the height of its text view changes. The default value of this property is NO.

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

See Also

Defining the Container Shape

size

The size of the text container’s bounding rectangle.

exclusionPaths

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

lineBreakMode

The behavior of the last line inside the text container.

widthTracksTextView

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