Creates a transition that uses a Core Image filter to perform the transition.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Sprite
Kit
Declaration
init(ciFilter filter: CIFilter, duration sec: Time Interval)
Parameters
filter
A Core Image filter.
sec
The duration of the transition.
Return Value
A new transition.
Discussion
The filter used to perform the transition must a be filter that requires only two image parameters (input
, input
) and generates a single image (output
). The transition automatically sets the filter’s input
, input
, and input
properties. You must set up any other filter properties before creating the transition.