---
title: autoresizesSubviews
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/autoresizessubviews
---

# autoresizesSubviews

A Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes.

## Declaration

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

## Discussion

Discussion When the value of this property is true and the view’s frame changes, the view automatically calls the resizeSubviews(withOldSize:) method to facilitate the resizing of its subviews. When the value of this property is false, the view does not autoresize its subviews. The default value of this property is true.

## See Also

### Resizing Subviews

- [autoresizingMask](appkit/nsview/autoresizingmask-swift.property.md)
- [NSView.AutoresizingMask](appkit/nsview/autoresizingmask-swift.struct.md)
- [resizeSubviews(withOldSize:)](appkit/nsview/resizesubviews(witholdsize:).md)
- [resize(withOldSuperviewSize:)](appkit/nsview/resize(witholdsuperviewsize:).md)
