<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/resizeSubviews(withOldSize:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(im)resizeSubviewsWithOldSize:"
  },
  "title" : "resizeSubviews(withOldSize:)"
}
-->

# resizeSubviews(withOldSize:)

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

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

## Parameters

`oldSize`

The previous size of the view’s bounds rectangle.

## 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:)`](/documentation/AppKit/NSView/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)