An array of Core Image filters to apply to the content immediately behind the layer. Animatable.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Animation
Background filters affect the content behind the layer that shows through into the layer itself. Typically this content belongs to the superlayer that acts as the parent of the layer. These filters do not affect the content of the layer itself, including the layer’s background color and border.
The default value of this property is
Changing the inputs of the
CIFilter object directly after it is attached to the layer causes undefined behavior. In macOS, it is possible to modify filter parameters after attaching them to the layer but you must use the layer’s
set method to do so. In addition, you must assign a name to the filter so that you can identify it in the array. For example, to change the
input parameter of the filter, you could use code similar to the following:
You use the layer's
masks to control the extent of its background filter's effect.
This property is not supported on layers in iOS.