An array of Core Image filters to apply to the contents of the layer and its sublayers. Animatable.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Core Animation
The filters you add to this property affect the content of the layer, including its border, filled background and sublayers. 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. 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:
Figure 1 shows the result: a pointillist effect is added to the text.
This property is not supported on layers in iOS.