<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/frameDidChangeNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSViewFrameDidChangeNotification"
  },
  "title" : "frameDidChangeNotification"
}
-->

# frameDidChangeNotification

A notification that posts when the view’s frame rectangle changes to a new value.

```
class let frameDidChangeNotification: NSNotification.Name
```

## Discussion

This notification posts only when the view’s [`postsFrameChangedNotifications`](/documentation/AppKit/NSView/postsFrameChangedNotifications) property is <doc://com.apple.documentation/documentation/Swift/true>.

The notification object is the `NSView` object whose frame rectangle has changed. This notification does not contain a `userInfo` dictionary.

The following methods can result in notification posting:

- [`frame`](/documentation/AppKit/NSView/frame)
- [`setFrameOrigin(_:)`](/documentation/AppKit/NSView/setFrameOrigin(_:))
- [`frameRotation`](/documentation/AppKit/NSView/frameRotation)
- [`setFrameSize(_:)`](/documentation/AppKit/NSView/setFrameSize(_:))

To observe this notification using Swift concurrency, use [`NSView.FrameDidChangeMessage`](/documentation/AppKit/NSView/FrameDidChangeMessage).

---

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)