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.
- Host: GitHub
- URL: https://github.com/vamshiiitbhu14/uberanimation
- Owner: VamshiIITBHU14
- Created: 2018-02-18T11:54:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T10:28:04.000Z (about 8 years ago)
- Last Synced: 2025-04-08T14:02:15.469Z (about 1 year ago)
- Topics: caem, caemitterlayer, coreanimation, swift, swift-4
- Language: Swift
- Homepage:
- Size: 24.4 KB
- Stars: 57
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
