layoutManager(_:shouldBreakLineByHyphenatingBeforeCharacterAt:)
Asks the delegate whether to break the line at the specified character.
Declaration
optional func layoutManager(_ layoutManager: NSLayoutManager, shouldBreakLineByHyphenatingBeforeCharacterAt charIndex: Int) -> BoolParameters
- layoutManager:
The layout manager doing the layout.
- charIndex:
Index of the character delimiting the hyphenation point search.
Return Value
true if the current hyphenation point is acceptable; false if the layout manager should find the next hyphenation opportunity before charIndex.
See Also
Handling line fragments
layoutManager(_:shouldBreakLineByWordBeforeCharacterAt:)layoutManager(_:lineSpacingAfterGlyphAt:withProposedLineFragmentRect:)layoutManager(_:paragraphSpacingAfterGlyphAt:withProposedLineFragmentRect:)layoutManager(_:paragraphSpacingBeforeGlyphAt:withProposedLineFragmentRect:)layoutManager(_:boundingBoxForControlGlyphAt:for:proposedLineFragment:glyphPosition:characterIndex:)layoutManager(_:shouldSetLineFragmentRect:lineFragmentUsedRect:baselineOffset:in:forGlyphRange:)