<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextInputTraits/keyboardAppearance",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextInputTraits(py)keyboardAppearance"
  },
  "title" : "keyboardAppearance"
}
-->

# keyboardAppearance

The appearance style of the keyboard for the text object.

```
optional var keyboardAppearance: UIKeyboardAppearance { get set }
```

## Discussion

This property lets you distinguish between the default text entry inside your application and text entry inside an alert panel. The default value for this property is [`UIKeyboardAppearance.default`](/documentation/UIKit/UIKeyboardAppearance/default).

---

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)