---
title: compositingFilter
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/compositingfilter
---

# compositingFilter

The Core Image filter used to composite the view’s contents with its background.

## Declaration

```swift
var compositingFilter: CIFilter? { get set }
```

## Discussion

Discussion This property contains the compositing filter stored in the compositingFilter property of the view’s layer. If the view does not have a layer, setting the value of this property has no effect. The default value of this property is nil, which causes content to be rendered without any special compositing effects.

## See Also

### Managing Layer-Related Properties

- [alphaValue](appkit/nsview/alphavalue.md)
- [frameCenterRotation](appkit/nsview/framecenterrotation.md)
- [backgroundFilters](appkit/nsview/backgroundfilters.md)
- [contentFilters](appkit/nsview/contentfilters.md)
- [shadow](appkit/nsview/shadow.md)
