Contents

UISceneSizeRestrictions

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

Declaration

@MainActor class UISceneSizeRestrictions

Overview

Don’t 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

See Also

Getting the interface attributes