Contents

displayMode

A value that describes the display mode of an indicator.

Declaration

var displayMode: NSTextInsertionIndicator.DisplayMode { get set }

Discussion

Set the displayMode to NSTextInsertionIndicator.DisplayMode.automatic when your custom view becomes the first responder. When your custom view resigns first responder, set the displayMode to NSTextInsertionIndicator.DisplayMode.hidden to indicate that key events aren’t sent to your view.

See Also

Setting the display mode