---
title: "resizeSubviews(withOldSize:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsview/resizesubviews(witholdsize:)"
---

# resizeSubviews(withOldSize:)

Informs the view’s subviews that the view’s bounds rectangle size has changed.

## Declaration

```swift
func resizeSubviews(withOldSize oldSize: NSSize)
```

## Parameters

- `oldSize`: The previous size of the view’s bounds rectangle.

## Discussion

Discussion If the view is configured to autoresize its subviews, this method is automatically invoked by any method that changes the view’s frame size. The default implementation sends resize(withOldSuperviewSize:) to the view’s subviews with oldBoundsSize as the argument. You shouldn’t invoke this method directly, but you can override it to define a specific resizing behavior.

## See Also

### Resizing Subviews

- [autoresizesSubviews](appkit/nsview/autoresizessubviews.md)
- [autoresizingMask](appkit/nsview/autoresizingmask-swift.property.md)
- [NSView.AutoresizingMask](appkit/nsview/autoresizingmask-swift.struct.md)
- [resize(withOldSuperviewSize:)](appkit/nsview/resize(witholdsuperviewsize:).md)
