ensureLayout(forCharacterRange:)
Forces the layout manager to perform layout for the specified character range if it hasn’t already.
Declaration
func ensureLayout(forCharacterRange charRange: NSRange)Parameters
- charRange:
The character range for which layout is performed.
Discussion
The layout manager reserves the right to perform layout for larger ranges. If noncontiguous layout is disabled, then the affected range is always effectively extended to start at the beginning of the text.