spiegel-keyman/ios/docs/engine/KeyboardPickerBarButtonItem/index.md
2024-10-31 10:13:00 +07:00

904 B

title
KeyboardPickerBarButtonItem class

Summary

Returns a UIBarButtonItem that will display the keyboard picker when tapped.

Syntax

KeyboardPickerBarButtonItem(presentingVC: UIViewController)

Parameters

presentingVC
View controller to handle the keyboard picker modes.

Description

Opens a view for the user to switch keyboards or download new keyboards.

Since the keyboard picker is modal, a UIViewController must be supplied to display it. The button has default images for normal and landscape orientation, and can overridden with other images or a title.

Examples

Example: Using KeyboardPickerBarButtonItem()

The following script illustrates the use of KeyboardPickerBarButtonItem():

let kbBarButton = KeyboardPickerBarButtonItem(presentingVC: self)

See also