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

# rectPreservedDuringLiveResize

The rectangle identifying the portion of your view that did not change during a live resize operation.

```
var rectPreservedDuringLiveResize: NSRect { get }
```

## Discussion

The rectangle in this property is in the coordinate system of your view and reflects the space your view previously occupied. This rectangle may be smaller or the same size as your view’s current bounds, depending on whether the view grew or shrunk.

If your view does not support content preservation during live resizing, the rectangle will be empty. To support content preservation, override the [`preservesContentDuringLiveResize`](/documentation/AppKit/NSView/preservesContentDuringLiveResize) property in your view and have your implementation return <doc://com.apple.documentation/documentation/Swift/true>.

> Note:
> The window containing your view must also support content preservation. To enable support for this feature in your window, use the ``doc://com.apple.appkit/documentation/AppKit/NSWindow/preservesContentDuringLiveResize`` method of `NSWindow`.

---

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)