An object that displays and manages custom input for a view when that view becomes the first responder.


class UIInputView : UIView


The UIInputView class is designed to match the appearance of the standard system keyboard when used as an input view with a responder. When defining your own custom input views or input accessory views, you can use a UIInputView object as the root view and add any subviews you want to create your input view. The input view and its subviews receive tinting and blur effects based on the options you specify at initialization time.


Initializing an Input View

init(frame: CGRect, inputViewStyle: UIInputView.Style)

Initializes and returns an input view using the specified style information.

Getting the Input Style

var inputViewStyle: UIInputView.Style

The style applied to the content of the view.

enum UIInputView.Style

Constants that indicate the appearance changes to make to an input view.

Sizing the Input View

var allowsSelfSizing: Bool

A Boolean value indicating whether the input view is responsible for its own size.

See Also


protocol UITextInput

A set of methods you implement to interact with the text input system and enable features such as autocorrection and multistage text input in documents.

protocol UITextInputDelegate

An intermediary between a document and the text input system.

protocol UITextInputTokenizer

A tokenizer, which is an object that allows the text input system to evaluate text units of different granularities.

protocol UIKeyInput

A set of methods a subclass of UIResponder uses to implement simple text entry.

class UITextInputMode

The current text-input mode.

class UITextInputStringTokenizer

A base implementation of the UITextInputTokenizer protocol.

class UIDictationPhrase

An object that represents the textual interpretation of a spoken phrase as dictated by a user.