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

# NSView.LayerContentsRedrawPolicy.crossfade

Redraw the layer contents at the new size and crossfade from the old contents to the new contents. Use this in conjunction with the NSView.LayerContentsPlacement constants to get a nice crossfade animation for complex layer-backed views that cannot update correctly at each step of the animation.

## Declaration

```swift
case crossfade
```

## 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.beforeViewResize](appkit/nsview/layercontentsredrawpolicy-swift.enum/beforeviewresize.md)
