Instance Method

layoutManager(_:shouldBreakLineByWordBeforeCharacterAt:)

Asks the delegate to determine whether to break the line at the specified word.

Declaration

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

Parameters

layoutManager

The layout manager doing the layout.

charIndex

Index of the character delimiting the break point search.

Return Value

true if the current line break point is acceptable; false if the layout manager should find the next break point opportunity before charIndex.