<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISceneSizeRestrictions",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISceneSizeRestrictions"
  },
  "title" : "UISceneSizeRestrictions"
}
-->

# UISceneSizeRestrictions

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

```
@MainActor class UISceneSizeRestrictions
```

## Overview

Don’t create a [`UISceneSizeRestrictions`](/documentation/UIKit/UISceneSizeRestrictions) object yourself. Instead, fetch an existing one from the [`sizeRestrictions`](/documentation/UIKit/UIWindowScene/sizeRestrictions) property of your window scene, and modify its properties to set the minimum and maximum window sizes:

```objc
@interface SceneDelegate ()

@end

@implementation SceneDelegate

- (void)scene:(UIScene *)scene
willConnectToSession:(UISceneSession *)session
      options:(UISceneConnectionOptions *)connectionOptions {

    UIWindowScene *windowScene = (UIWindowScene *)scene;
    if (![windowScene isKindOfClass:[UIWindowScene class]]) { return; }

    CGSize minimumSize = windowScene.sizeRestrictions.minimumSize;
    minimumSize.width = 500.0;
    windowScene.sizeRestrictions.minimumSize = minimumSize;
}

@end
```

The system provides this object only when it supports variable-sized windows.

## Topics

### Setting the size restrictions

[`minimumSize`](/documentation/UIKit/UISceneSizeRestrictions/minimumSize)

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

[`maximumSize`](/documentation/UIKit/UISceneSizeRestrictions/maximumSize)

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

[`allowsFullScreen`](/documentation/UIKit/UISceneSizeRestrictions/allowsFullScreen)

A Boolean value that indicates whether the scene can appear full screen.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)