Skip to content

kusalshrestha/KSEmitterLayer

Repository files navigation

KSEmitterLayer

Emitter layer using CoreAnimation using Swift

How to import the framework

First import the framework into the project Add it to the "Embedded Binaries" and you are good to go. :)

alt tag

Example

let emitterLayer = KSParticleLayer()
emitterPlayView.layer.addSublayer(emitterLayer)
emitterLayer.particleVelocity = CGFloat(200)
emitterLayer.birthRate = 100
emitterLayer.startEmittingWithEffect(.Blast, andPosition: view.center)

ScreenShot

alt tag