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

# NSView.LayerContentsRedrawPolicy.beforeViewResize

Resize the layer and redraw the view to the layer when the view’s size changes. This will be done just once at the beginning of a resize animation, not at each frame 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).

```
case beforeViewResize
```

---

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)