Skip to content

saihariG/ClassyConfetti

Repository files navigation

ClassyConfetti

CI Status Version MIT License Platform

ClassyConfetti is an iOS framework to add customised beautiful confetti animations to iOS applications

English | தமிழ்

ScreenShots / Gif

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 10.0 or later
  • Swift 5+
  • Xcode 10+

Installation

ClassyConfetti is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ClassyConfetti'

Manual Installation

Place the Confetti.swift file in your project

Usage

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)

Constants

with: Position

  • fromTop
  • fromBeyondTop
  • fromTopLeft
  • fromTopRight
  • fromBottom
  • fromBottomLeft
  • fromBottomRight
  • fromCenter

Contribute

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 🎊

Sponsor

Your support help us to maintain and encourage us to build more products

Author

saihariG, [email protected]

License

ClassyConfetti is available under the MIT license. See the LICENSE file for more info.