Class

UISceneSizeRestrictions

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

Declaration

class UISceneSizeRestrictions : NSObject

Overview

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.

Topics

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.

Relationships

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.

Beta
var coordinateSpace: UICoordinateSpace

The coordinate space occupied by the scene.

Beta
var interfaceOrientation: UIInterfaceOrientation

The orientation to use when displaying content in your windows.

Beta
var sizeRestrictions: UISceneSizeRestrictions?

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software