Instance Property

exclusionPaths

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

Declaration

iOS, Mac Catalyst, tvOS
var exclusionPaths: [UIBezierPath] { get set }
macOS
var exclusionPaths: [NSBezierPath] { get set }

Discussion

The default value of this property is an empty array. Depending on the platform, you can assign an array of NSBezierPath or UIBezierPath objects to exclude text from one or more regions in the text container’s bounds. When the layout manager proposes a line fragment rectangle intersecting one of the regions defined by the exclusion paths, the text container returns an adjusted line fragment rectangle excluding that region.

See Also

Defining the Container Shape

var size: CGSize

The size of the text container’s bounding rectangle.

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 widthTracksTextView: Bool

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

var heightTracksTextView: Bool

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