An optional Core Image filter object that provides the transition.
- macOS 10.5+
- Mac Catalyst 13.0+
- Core Animation
If specified, the filter must support both
k input keys, and the
k output key. The filter may optionally support the
k input key, which is set to a rectangle describing the region in which the transition should run. If
filter does not support the required input and output keys the behavior is undefined.
Listing 1 shows how you can transition between the two states of a
transitioning. When the layer is first created, its
background is set to red and its
string property is set to
Red. When the
run function is called, a new
CATransition object is created and added to
transitioning, and the state of the layer is changed so that its background color is blue and its rendered text reads
The end result is that the transition animates from the red state to the blue state using a CICopyMachineTransition transition.
This property is not supported on layers in iOS.