An open API service indexing awesome lists of open source software.

https://github.com/vamshiiitbhu14/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.
https://github.com/vamshiiitbhu14/uberanimation

caem caemitterlayer coreanimation swift swift-4

Last synced: 3 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

# 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)```

2) 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

![ezgif com-optimize](https://user-images.githubusercontent.com/21070922/36352011-2678f670-14d8-11e8-978e-5c783c35d975.gif)