---
title: NSView.LayerContentsRedrawPolicy.beforeViewResize
framework: appkit
role: symbol
role_heading: Case
path: appkit/nsview/layercontentsredrawpolicy-swift.enum/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.

## Declaration

```swift
case beforeViewResize
```

## See Also

### Constants

- [NSView.LayerContentsRedrawPolicy.never](appkit/nsview/layercontentsredrawpolicy-swift.enum/never.md)
- [NSView.LayerContentsRedrawPolicy.onSetNeedsDisplay](appkit/nsview/layercontentsredrawpolicy-swift.enum/onsetneedsdisplay.md)
- [NSView.LayerContentsRedrawPolicy.duringViewResize](appkit/nsview/layercontentsredrawpolicy-swift.enum/duringviewresize.md)
- [NSView.LayerContentsRedrawPolicy.crossfade](appkit/nsview/layercontentsredrawpolicy-swift.enum/crossfade.md)
