---
title: UIKeyboardAppearance
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/uikeyboardappearance
---

# UIKeyboardAppearance

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

## Declaration

```swift
enum UIKeyboardAppearance
```

## Overview

Overview Use these constants with the keyboardAppearance property.

## Topics

### Constants

- [UIKeyboardAppearance.default](uikit/uikeyboardappearance/default.md)
- [UIKeyboardAppearance.dark](uikit/uikeyboardappearance/dark.md)
- [UIKeyboardAppearance.light](uikit/uikeyboardappearance/light.md)
- [alert](uikit/uikeyboardappearance/alert.md)

### Initializers

- [init(rawValue:)](uikit/uikeyboardappearance/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring the keyboard appearance

- [keyboardType](uikit/uitextinputtraits/keyboardtype.md)
- [UIKeyboardType](uikit/uikeyboardtype.md)
- [keyboardAppearance](uikit/uitextinputtraits/keyboardappearance.md)
- [returnKeyType](uikit/uitextinputtraits/returnkeytype.md)
- [UIReturnKeyType](uikit/uireturnkeytype.md)
- [textContentType](uikit/uitextinputtraits/textcontenttype.md)
- [UITextContentType](uikit/uitextcontenttype.md)
