---
title: UIKeyboardType
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/uikeyboardtype
---

# UIKeyboardType

Constants that specify the type of keyboard to display for a text-based view.

## Declaration

```swift
enum UIKeyboardType
```

## Overview

Overview Use these constants with the keyboardType property.

## Topics

### Constants

- [UIKeyboardType.default](uikit/uikeyboardtype/default.md)
- [UIKeyboardType.asciiCapable](uikit/uikeyboardtype/asciicapable.md)
- [UIKeyboardType.numbersAndPunctuation](uikit/uikeyboardtype/numbersandpunctuation.md)
- [UIKeyboardType.URL](uikit/uikeyboardtype/url.md)
- [UIKeyboardType.numberPad](uikit/uikeyboardtype/numberpad.md)
- [UIKeyboardType.phonePad](uikit/uikeyboardtype/phonepad.md)
- [UIKeyboardType.namePhonePad](uikit/uikeyboardtype/namephonepad.md)
- [UIKeyboardType.emailAddress](uikit/uikeyboardtype/emailaddress.md)
- [UIKeyboardType.decimalPad](uikit/uikeyboardtype/decimalpad.md)
- [UIKeyboardType.twitter](uikit/uikeyboardtype/twitter.md)
- [UIKeyboardType.webSearch](uikit/uikeyboardtype/websearch.md)
- [UIKeyboardType.asciiCapableNumberPad](uikit/uikeyboardtype/asciicapablenumberpad.md)
- [alphabet](uikit/uikeyboardtype/alphabet.md)

### Initializers

- [init(rawValue:)](uikit/uikeyboardtype/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)
- [keyboardAppearance](uikit/uitextinputtraits/keyboardappearance.md)
- [UIKeyboardAppearance](uikit/uikeyboardappearance.md)
- [returnKeyType](uikit/uitextinputtraits/returnkeytype.md)
- [UIReturnKeyType](uikit/uireturnkeytype.md)
- [textContentType](uikit/uitextinputtraits/textcontenttype.md)
- [UITextContentType](uikit/uitextcontenttype.md)
