Contents

UIKey

An object that provides information about the state of a keyboard key.

Declaration

@MainActor class UIKey

Overview

UIKey provides relevant information about the current state of a key on a keyboard as a user presses and releases the key. To learn more, see Handling key presses made on a physical keyboard.

Topics

Determining key type

Getting key characters

Initializers

See Also

Physical keyboards