Contents

layoutManager(_:shouldBreakLineByHyphenatingBeforeCharacterAt:)

Asks the delegate whether to break the line at the specified character.

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.

See Also

Handling line fragments