ClassyConfetti is an iOS framework to add customised beautiful confetti animations to iOS applications
To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 10.0 or later
- Swift 5+
- Xcode 10+
ClassyConfetti is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ClassyConfetti'
Place the Confetti.swift
file in your project
import the module in your viewcontroller
import ClassyConfetti
create an instance of the class
let confetti = classyConfetti()
make the confetti animation by calling the emit(in view : UIView,with position : Position,for duration : CFTimeInterval = 1)
function
confetti.emit(in: view, with: .fromTop)
emit function has an optional duration paramater which specifies the time duration of the animation
confetti.emit(in: view, with: .fromTop, for: 2)
with: Position
- fromTop
- fromBeyondTop
- fromTopLeft
- fromTopRight
- fromBottom
- fromBottomLeft
- fromBottomRight
- fromCenter
ClassyConfetti is always open to enhancements, new features and bug fixes.Fork this repository, make your changes & create a pull request.PR's will be reviewed and merged to master branch
ClassyConfetti appreciates your Contribution 🎊
Your support help us to maintain and encourage us to build more products
saihariG, krishnansaihari@gmail.com
ClassyConfetti is available under the MIT license. See the LICENSE file for more info.