Skip to main content

Overview

IQKeyboardAppearanceConfiguration is a configuration class that manages keyboard appearance settings for text input views throughout your application. It allows you to override and standardize the keyboard appearance across all text fields and text views.
This class is marked with @MainActor, so all property access must occur on the main thread.

Class Declaration

Properties

Bool
default:"false"
Determines whether to override the keyboard appearance for all text input views. When set to true, all text input views will use the appearance specified in the appearance property.
UIKeyboardAppearance
default:".default"
The keyboard appearance to apply to all text input views when overrideAppearance is enabled. This property accepts any value from the UIKeyboardAppearance enum.

UIKeyboardAppearance Values

The appearance property accepts the following UIKeyboardAppearance enum values:

Usage Examples

Basic Configuration

Integration with IQKeyboardManager

Conditional Appearance Based on Dark Mode

Disabling Override

Important Notes

The appearance is only applied when a text input view begins editing. Changing these properties while a keyboard is already visible will not take effect until the next text input view becomes active.
This class is unavailable in iOS App Extensions due to its dependency on UIApplication features.

See Also