Contents

layoutManager(_:shouldUse:forControlCharacterAt:)

Returns the control character action for the control character at the specified character index.

Declaration

optional func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction

Parameters

  • layoutManager:

    The layout manager doing the layout.

  • action:

    The proposed control character action for the character at the given index. Possible values are enumerated by Controlcharacteraction.

  • charIndex:

    The index of the control character for which the action is proposed.

Return Value

The control character action for the control character at the given index.

See Also

Invalidating glyphs and layout