---
title: rectPreservedDuringLiveResize
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/rectpreservedduringliveresize
---

# rectPreservedDuringLiveResize

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

## Declaration

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

## Discussion

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 property in your view and have your implementation return true. note: The window containing your view must also support content preservation. To enable support for this feature in your window, use the preservesContentDuringLiveResize method of NSWindow.

## See Also

### Managing Live Resize

- [inLiveResize](appkit/nsview/inliveresize.md)
- [preservesContentDuringLiveResize](appkit/nsview/preservescontentduringliveresize.md)
- [getRectsExposedDuringLiveResize(_:count:)](appkit/nsview/getrectsexposedduringliveresize(_:count:).md)
- [viewWillStartLiveResize()](appkit/nsview/viewwillstartliveresize().md)
- [viewDidEndLiveResize()](appkit/nsview/viewdidendliveresize().md)
