UIRequiresFullScreen alternative for iPadOS 26+

My apps are using UIRequiresFullScreen = YES in the info.plist. Now that this is deprecated for iPadOS 26+, I'm updating my apps and using the UIWindowScene's sizeRestriction property to ensure a certain minimum size of the window. I've enabled all orientations support for iPads in the plist as well as the supportedInterfaceOrientations property of the ViewController. On iPadOS 26, the following line works -

windowScene.sizeRestrictrions?.minimumSize = CGSize(480,720)

The window does not resize below the above threshold and everything works as expected.

However on the iPad simulators for 18.x (with Stage Manager enabled), the above sizeRestrictions property is never set. It shows up as nil even after the views have been laid out. The simulator allows me to drag the window handle and shrink the window to well below the specified threshold, all the way down to a width of 375.

Is there anyway I can set the sizeRestrictions for iPadOS 18.x and lower?

Answered by DTS Engineer in 860110022

@ayushv2005 That's expected, If the value of sizeRestrictions is nil, the system doesn’t allow you to set window size restrictions.

The sizeRestrictrions is a preference and the system will do a best effort to satisfy your minimum size, but it is not guaranteed. If your app layout relies on consistent scene size, or uses absolute values for its view geometry, consider using Auto Layout to calculate the size and position of its views through constraints placed on its views.

Please review TN3192: Migrating your iPad app from the deprecated UIRequiresFullScreen key for details.

Accepted Answer

@ayushv2005 That's expected, If the value of sizeRestrictions is nil, the system doesn’t allow you to set window size restrictions.

The sizeRestrictrions is a preference and the system will do a best effort to satisfy your minimum size, but it is not guaranteed. If your app layout relies on consistent scene size, or uses absolute values for its view geometry, consider using Auto Layout to calculate the size and position of its views through constraints placed on its views.

Please review TN3192: Migrating your iPad app from the deprecated UIRequiresFullScreen key for details.

UIRequiresFullScreen alternative for iPadOS 26+
 
 
Q