Instance Method


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



Your singleton app object.


The window whose interface orientations you want to retrieve.

Return Value

A bit mask of the UIInterfaceOrientationMask constants that indicate the orientations to use for the view controllers.


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.