Device Utilities

KeyboardKit has device-specific utilities.

πŸ–₯️

Overview

KeyboardKit has various device-related features that aim to help you customize for various devices.

Although you should avoid designing for a specific device, orientation, or screen size, some features do need these kinds of considerations. Just take care to know when it’s needed.

Device type

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

Interface orientation

KeyboardKit has a platform-agnostic InterfaceOrientation enum that defines interface orientations. You can use .current to get the current interface orientation.

Screen sizes

KeyboardKit has CGSize extensions to help detecting device types, like .iPadScreenPortrait. There’s also an .isScreenSize(_:) rotation-agnostic function that compares.

Documentation

The information on this page is shortened to be easier to overview. For more information see the online documentation, or the KeyboardKit Pro documentation.


Core Features

KeyboardKit is packed with features. You can upgrade to KeyboardKit Pro to unlock pro features.

πŸ‘‘ Pro Features

KeyboardKit Pro unlocks powerful pro features to take your keyboard extension to the next level.