<!--
{
  "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/UIApplication/supportedInterfaceOrientations(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIApplication(im)supportedInterfaceOrientationsForWindow:"
  },
  "title" : "supportedInterfaceOrientations(for:)"
}
-->

# supportedInterfaceOrientations(for:)

Returns the default set of interface orientations to use for the view controllers in the specified window.

```
func supportedInterfaceOrientations(for window: UIWindow?) -> UIInterfaceOrientationMask
```

## Parameters

`window`

The window whose default interface orientations you want to retrieve.

## Return Value

A bit mask specifying which orientations are supported. See [`UIInterfaceOrientationMask`](/documentation/UIKit/UIInterfaceOrientationMask) for valid bit-mask values. The value returned by this method must not be `0`.

## Discussion

Starting in iOS 8, you should employ the [`UITraitCollection`](/documentation/UIKit/UITraitCollection) and [`UITraitEnvironment`](/documentation/UIKit/UITraitEnvironment) APIs, and size class properties as used in those APIs, instead of using this method or otherwise writing your app in terms of interface orientation.

This method returns the default interface orientations for the app. These orientations are used only for view controllers that do not specify their own. If your app delegate implements the [`application(_:supportedInterfaceOrientationsFor:)`](/documentation/UIKit/UIApplicationDelegate/application(_:supportedInterfaceOrientationsFor:)) method, the system does not call this method.

The default implementation of this method returns the app’s default set of supported interface orientations, as you define them in the [UISupportedInterfaceOrientations](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW10) key of the `Info.plist` file in your Xcode project. If the file does not contain that key, this method returns all interface orientations for the iPad idiom and returns all interface orientations except the portrait upside-down orientation for the iPhone idiom.

---

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)