Instance Property

sizeRestrictions

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

Declaration

var sizeRestrictions: UISceneSizeRestrictions? { get }

Discussion

When the value of this property is not nil, use it to change the default minimum and maximum window sizes for your app. If the value of this property is nil, the system doesn't allow you to set window size restrictions.

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.

class UISceneSizeRestrictions

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