Device Utilities

KeyboardKit has a bunch of device-specific utilities.


KeyboardKit has platform-agnostic device functionality that aims to help you use device information to customize your keyboards.

Device type

KeyboardKit has a DeviceType enum with platform-agnostic device types. You can use .current to get the current device type.

Screen sizes

KeyboardKit has CGSize utilities to help detecting which kind of hardware you’re on, if a certain size matches a certain screen etc.

Interface orientation

KeyboardKit has an InterfaceOrientation enum with platform-agnostic types. You can use .current to get the current interface orientation.


The information on this page is shortened to be easier to overview. For more information about this feature, code samples, etc., please see the online documentation.