---
title: UISceneSizeRestrictions
framework: uikit
role: symbol
role_heading: Class
path: uikit/uiscenesizerestrictions
---

# UISceneSizeRestrictions

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

## Declaration

```swift
@MainActor class UISceneSizeRestrictions
```

## Overview

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

- [minimumSize](uikit/uiscenesizerestrictions/minimumsize.md)
- [maximumSize](uikit/uiscenesizerestrictions/maximumsize.md)
- [allowsFullScreen](uikit/uiscenesizerestrictions/allowsfullscreen.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Getting the interface attributes

- [traitCollection](uikit/uiwindowscene/traitcollection.md)
- [sizeRestrictions](uikit/uiwindowscene/sizerestrictions.md)
