<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIKeyboardAppearance",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIKeyboardAppearance"
  },
  "title" : "UIKeyboardAppearance"
}
-->

# UIKeyboardAppearance

Constants that specify the appearance of the keyboard for a text-based view.

```
enum UIKeyboardAppearance
```

## Overview

Use these constants with the [`keyboardAppearance`](/documentation/UIKit/UITextInputTraits/keyboardAppearance) property.

## Topics

### Constants

[`UIKeyboardAppearanceDefault`](/documentation/UIKit/UIKeyboardAppearance/default)

Specifies the default keyboard appearance for the current input method.

[`UIKeyboardAppearanceDark`](/documentation/UIKit/UIKeyboardAppearance/dark)

Specifies a keyboard appearance suitable for a dark UI look.

[`UIKeyboardAppearanceLight`](/documentation/UIKit/UIKeyboardAppearance/light)

Specifies a keyboard appearance suitable for a light UI look.

[`UIKeyboardAppearanceAlert`](/documentation/UIKit/UIKeyboardAppearance/alert)

Specifies a keyboard appearance suitable for an alert panel.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)