An object that specifies the minimum and maximum sizes for resizable windows.


class UISceneSizeRestrictions : NSObject


Do not create a UISceneSizeRestrictions object yourself. Instead, fetch an existing one from the sizeRestrictions property of your window scene, and modify its properties to set the minimum and maximum window sizes. The system provides this object only when it supports variable-sized windows.


Setting the Size Restrictions

var minimumSize: CGSize

The minimum width and height supported by your app's windows.

var maximumSize: CGSize

The maximum width and height supported by your app's windows.


Inherits From

Conforms To

See Also

Getting the Interface Attributes

var traitCollection: UITraitCollection

The traits, such as the size class and scale factor, that describe the current environment of the scene.

var coordinateSpace: UICoordinateSpace

The coordinate space occupied by the scene.

var interfaceOrientation: UIInterfaceOrientation

The orientation to use when displaying content in your windows.

var sizeRestrictions: UISceneSizeRestrictions?

The minimum and maximum size of the app's windows.