---
title: setNeedsUpdateOfSupportedInterfaceOrientations()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiviewcontroller/setneedsupdateofsupportedinterfaceorientations()
---

# setNeedsUpdateOfSupportedInterfaceOrientations()

Notifies the view controller about a change in supported interface orientations or preferred interface orientation for presentation.

## Declaration

```swift
func setNeedsUpdateOfSupportedInterfaceOrientations()
```

## Discussion

Discussion By default, this method animates any changes to orientation. To perform a nonanimated update, call this method from performWithoutAnimation(_:).

## See Also

### Configuring the view rotation settings

- [supportedInterfaceOrientations](uikit/uiviewcontroller/supportedinterfaceorientations.md)
- [preferredInterfaceOrientationForPresentation](uikit/uiviewcontroller/preferredinterfaceorientationforpresentation.md)
- [prefersInterfaceOrientationLocked](uikit/uiviewcontroller/prefersinterfaceorientationlocked.md)
- [setNeedsUpdateOfPrefersInterfaceOrientationLocked()](uikit/uiviewcontroller/setneedsupdateofprefersinterfaceorientationlocked().md)
- [childForInterfaceOrientationLock](uikit/uiviewcontroller/childforinterfaceorientationlock.md)
