Instance Property

isSimpleRectangularTextContainer

A boolean that indicates whether the receiver’s region is a rectangle with no holes or gaps and whose edges are parallel to the text view's coordinate system axes.

Declaration

var isSimpleRectangularTextContainer: Bool { get }

Discussion

The value of this property is true when the text container’s region is a rectangle with no holes or gaps and the edges are parallel to the text view's coordinate system axes. The default value of this property is false when the exclusionPaths property contains one or more items, when the maximumNumberOfLines property is not zero, or when you override the lineFragmentRect(forProposedRect:at:writingDirection:remaining:) method. Otherwise, the default value is true.

See Also

Constraining Text Layout

var maximumNumberOfLines: Int

The maximum number of lines that can be stored in the text container.

var lineFragmentPadding: CGFloat

The amount by which text is inset within line fragment rectangles.