Instance Method

layoutManager(_:shouldBreakLineByHyphenatingBeforeCharacterAt:)

Sent while determining the hyphenation point.

Declaration

optional func layoutManager(_ layoutManager: NSLayoutManager, shouldBreakLineByHyphenatingBeforeCharacterAt charIndex: Int) -> Bool

Parameters

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.