---
title: autoresizesSubviews
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/autoresizessubviews
---

# autoresizesSubviews

A Boolean value that determines whether the receiver automatically resizes its subviews when its bounds change.

## Declaration

```swift
var autoresizesSubviews: Bool { get set }
```

## Discussion

Discussion When set to true, the receiver adjusts the size of its subviews when its bounds change. The default value is true.

## See Also

### Configuring the resizing behavior

- [contentMode](uikit/uiview/contentmode-swift.property.md)
- [UIView.ContentMode](uikit/uiview/contentmode-swift.enum.md)
- [sizeThatFits(_:)](uikit/uiview/sizethatfits(_:).md)
- [sizeToFit()](uikit/uiview/sizetofit().md)
- [autoresizingMask](uikit/uiview/autoresizingmask-swift.property.md)
