---
title: overrideUserInterfaceStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/overrideuserinterfacestyle
---

# overrideUserInterfaceStyle

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

## Declaration

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

## Discussion

Discussion Use this property to force the view controller to always adopt a light or dark interface style. The default value of this property is UIUserInterfaceStyle.unspecified, which causes the view controller to inherit the interface style from the system or a parent view controller. If you assign a different value, the new style applies to the view controller, its entire view hierarchy, and any embedded child view controllers.

## See Also

### Adjusting the interface style

- [preferredUserInterfaceStyle](uikit/uiviewcontroller/preferreduserinterfacestyle.md)
- [childViewControllerForUserInterfaceStyle](uikit/uiviewcontroller/childviewcontrollerforuserinterfacestyle.md)
- [setNeedsUserInterfaceAppearanceUpdate()](uikit/uiviewcontroller/setneedsuserinterfaceappearanceupdate().md)
- [UIUserInterfaceStyle](uikit/uiuserinterfacestyle.md)
