Returns the bounds of a line fragment rectangle inside the receiver for the proposed rectangle.
- iOS 7.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
A rectangle in which to lay out text proposed by the layout manager.
The character location inside the text storage for the line fragment being processed.
The remainder of the proposed rectangle that was excluded from returned rectangle. It can be passed in as the proposed rectangle for the next iteration.
The bounds of the line fragment rectangle are determined by the intersection of
proposed and the text container’s bounding rectangle defined by its
NSText property. The regions defined by the
NSText property are excluded from the return value. It is possible that
proposed can be divided into multiple line fragments due to exclusion paths. In that case,
remaining returns the remainder that can be passed in as the proposed rectangle for the next iteration.
This method can be overridden by subclasses for further text container region customization.