<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/compositingFilter",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(py)compositingFilter"
  },
  "title" : "compositingFilter"
}
-->

# compositingFilter

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

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

## Discussion

This property contains the compositing filter stored in the <doc://com.apple.documentation/documentation/QuartzCore/CALayer/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.

---

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)