NSTextLayoutManager
The primary class that you use to manage text layout and presentation for custom text displays.
Declaration
class NSTextLayoutManagerOverview
NSTextLayoutManager is the centerpiece of the TextKit object network that maintains the layout geometry through an array of NSTextContainer objects. It lays out results using NSTextLayoutFragment and NSTextElement objects vended from a NSTextContentManager that participates in the content layout process.
Topics
Creating a layout manager
Configuring global layout manager options
layoutQueuerenderingAttributesValidatorusesFontLeadingusesHyphenationlimitsLayoutForSuspiciousContents
Managing the layout process
Accessing the text storage
textContentManagertextContainertextSelectionNavigationtextSelectionsusageBoundsForTextContainerenumerateTextSegments(in:type:options:using:)replace(_:)replaceContents(in:with:)replaceContents(in:with:)
Adjusting rendering
linkRenderingAttributesaddRenderingAttribute(_:value:for:)enumerateRenderingAttributes(from:reverse:using:)renderingAttributes(forLink:at:)invalidateRenderingAttributes(for:)removeRenderingAttribute(_:for:)setRenderingAttributes(_:for:)
Causing layout generation
textViewportLayoutControllerinvalidateLayout(for:)textLayoutFragment(for:)textLayoutFragment(for:)ensureLayout(for:)ensureLayout(for:)enumerateTextLayoutFragments(from:options:using:)NSTextLayoutManager.SegmentTypeNSTextLayoutManager.SegmentOptions