A layer that emits, animates, and renders a particle system.
- iOS 5.0+
- macOS 10.6+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Core Animation
The particles, defined by instances of
CAEmitter, are drawn above the layer’s background color and border.
Listing 1 shows how to set up a simple point (the default
point) particle emitter. It uses an image named
Radial as the cell contents and, by setting the emitter cell's
pi, the particles are emitted in all directions.