---
title: sizeRestrictions
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiwindowscene/sizerestrictions
---

# sizeRestrictions

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

## Declaration

```swift
var sizeRestrictions: UISceneSizeRestrictions? { get }
```

## Discussion

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

- [traitCollection](uikit/uiwindowscene/traitcollection.md)
- [UISceneSizeRestrictions](uikit/uiscenesizerestrictions.md)
