<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/LayerContentsRedrawPolicy-swift.enum/duringViewResize",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSViewLayerContentsRedrawPolicy@NSViewLayerContentsRedrawDuringViewResize"
  },
  "title" : "NSView.LayerContentsRedrawPolicy.duringViewResize"
}
-->

# NSView.LayerContentsRedrawPolicy.duringViewResize

Resize the view’s backing-layer and redraw the view to the layer when the view’s size changes. If the resize is animated, AppKit will drive the resize animation itself and will do this resize and redraw at each step of the animation. Affected parts of the layer will also be redrawn when the view is marked as needing display. This mode is a superset of [`NSView.LayerContentsRedrawPolicy.onSetNeedsDisplay`](/documentation/AppKit/NSView/LayerContentsRedrawPolicy-swift.enum/onSetNeedsDisplay). This is the way that layer-backed views are currently treated.

```
case duringViewResize
```

---

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)