Instance Method

layoutManager(_:shouldBreakLineByWordBeforeCharacterAt:)

Sent while determining the soft line break point.

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software