Instance Method


Sent while determining the soft line break point.


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



The layout manager doing the layout.


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