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

# overrideUserInterfaceStyle

The user interface style adopted by the view and all of its subviews.

```
var overrideUserInterfaceStyle: UIUserInterfaceStyle { get set }
```

## Discussion

Use this property to force the view to always adopt a light or dark interface style. The default value of this property is [`UIUserInterfaceStyle.unspecified`](/documentation/UIKit/UIUserInterfaceStyle/unspecified), which causes the view to inherit the interface style from a parent view or view controller. If you assign a different value, the new style applies to the view and all of the subviews owned by the same view controller. (If the view hierarchy contains the root view of an embedded child view controller, the child view controller and its views do not inherit the interface style.) If the view is a [`UIWindow`](/documentation/UIKit/UIWindow) object, the new style applies to everything in the window, including the root view controller and all presented content.

---

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)