UberAnimation

Heyaa! This is an attempt to mimic the animation Uber and Facebook shows up as a Congratulatory Pop-up. Looking at the attached GIF will give you a better idea of what this project covers. All written in Swift4.

Stars
57
Committers
1

UberAnimation

Heyaa! 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.

Installation:

  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)

  1. Cocoapods:
    You can add pod 'VKUberAnimation', '~> 0.1' similar to the following to your Podfile:

target 'YourApp' do pod 'VKUberAnimation', '~> 0.1' end 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

Package Rankings
Top 17.36% on Cocoapods.org
Related Projects