---
title: NSView.LayerContentsRedrawPolicy.onSetNeedsDisplay
framework: appkit
role: symbol
role_heading: Case
path: appkit/nsview/layercontentsredrawpolicy-swift.enum/onsetneedsdisplay
---

# NSView.LayerContentsRedrawPolicy.onSetNeedsDisplay

Any of the setNeedsDisplay methods sent to the view will cause the view redraw the affected layer parts by invoking the view’s draw(_:), but neither the layer or the view are marked as needing display when the view’s size changes.

## Declaration

```swift
case onSetNeedsDisplay
```

## See Also

### Constants

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