Customizes the line fragment geometry before committing it to the layout cache.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The layout manager doing the work.
The proposed rectangle that contains the glyphs. You may modify this rectangle as needed.
The portion of
linethat actually contains glyphs or other rendered marks, including the text container's line fragment padding. This rectangle must be equal to
lineor wholly contained by it. You may modify this rectangle as needed.
The vertical distance (in pixels) from the line fragment origin to the baseline on which the glyphs align.
The text container for the line fragments.
The range of glyphs being laid out.
Use this method to modify the line fragment rectangles associated with the text container. It is your responsibility to ensure that the modified rectangles remain valid and still lie within the text container.