<!--
{
  "availability" : [
    "iOS: 6.0.0 - 27.0.0",
    "iPadOS: 6.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplicationDelegate/application(_:supportedInterfaceOrientationsFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIApplicationDelegate(im)application:supportedInterfaceOrientationsForWindow:"
  },
  "title" : "application(_:supportedInterfaceOrientationsFor:)"
}
-->

# application(_:supportedInterfaceOrientationsFor:)

Asks the delegate for the interface orientations to use for the view controllers in the specified window.

```
optional func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask
```

## Parameters

`application`

Your singleton app object.

`window`

The window whose interface orientations you want to retrieve.

## Return Value

A bit mask of the [`UIInterfaceOrientationMask`](/documentation/UIKit/UIInterfaceOrientationMask) constants that indicate the orientations to use for the view controllers.

## Discussion

This method returns the total set of interface orientations supported by the app. When determining whether to rotate a particular view controller, the orientations returned by this method are intersected with the orientations supported by the root view controller or topmost presented view controller. The app and view controller must agree before the rotation is allowed.

If you do not implement this method, the app uses the values in the `UIInterfaceOrientation` key of the app’s `Info.plist` as the default interface orientations.

---

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)