Contents

inputAssistantItem

The input assistant to use when configuring the keyboard’s shortcuts bar.

Declaration

var inputAssistantItem: UITextInputAssistantItem { get }

Discussion

On iPad, the shortcuts bar above the keyboard contains typing suggestions and other controls for managing text, such as cut, copy, and paste commands. This property contains the text input assistant item you use to configure the custom bar button items that you want included in the shortcuts bar. The shortcuts bar isn’t available on iPhone or iPod Touch.

This property has special considerations in visionOS:

  • In apps built for visionOS, this property isn’t available. Use bottomOrnament instead.

  • In compatible iPad apps running in visionOS, the shortcuts bar behaves similar to iPadOS. It contains the custom bar button items you configure using this property and system items (such as cut, copy, and paste). The shortcuts bar renders at the bottom of the app window, but it doesn’t anchor to the keyboard in visionOS.

See Also

Managing the text input mode