Latest 0.1.0
License MIT
Platforms ios 10.0


This is an attempt to mimic of the animation Uber and Facebook shows up as a congratulatory popup.
Looking at the attached GIF will give you a better idea of what thsi project covers.

1) Manual:
a) Using this in your app is real simple. Download the code, drag and drop VKEmitter.Swift to your project.
b) Then write the below snippet when you want the animation to pop-up.

let imageNamesArray = ["star1", "star2"]
VKEmitter().emitParticles(superView: view, imageNamesArray: imageNamesArray, stopAfterSeconds: 2.0, type: 1)

2) Cocoapods:
You can add pod ‘VKUberAnimation’, ‘~> 0.1’ similar to the following to your Podfile:

target 'YourApp' do
pod 'VKUberAnimation', '~> 0.1'
Then run a pod install inside your terminal.

superView parameter is the UIView in which you want the animation to pop-up.
imageNamesArray is the paramter of type [String] where you pass the names of images you wish to show up in the animaton.
stopAfterSeconds is the parameter of Double type where you pass a Double value after which you want the animation to stop.
type is the parameter of type Int where you pass either 1 or 2 or 3. There are basically three types of emission where
1 corresponds to kCAEmitterLayerPoints, 2 corresponds to kCAEmitterLayerLine , 3 corresponds to kCAEmitterLayerRectangle

ezgif com-optimize

Latest podspec

    "name": "VKUberAnimation",
    "version": "0.1.0",
    "summary": "Mimic Uber Animation",
    "description": "Mimic Uber Animation just with one line of code",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Vamshi Krishna": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "10.0"
    "source_files": "UberAnimation/VKEmitter.swift"

Pin It on Pinterest

Share This