Skip to content

bestiosdeveloper/PKImageSpark

Repository files navigation

PKImageSpark

CocoaPods codebeat badge

Some Cool Animations written in Swift

preview

Requirements

  • iOS 8.0+
  • Xcode 9.2

Installation

For manual instalation, drag Source folder into your project.

os use CocoaPod adding this line to you Podfile:

pod 'PKImageSpark'

Usage

In Code

  1. Create a instance of PKImageSpark with customised of default configurations and pass an UIImage that will spark

  2. Just call startSparking() method for animation

Example:

let confg = PKSparkConfiguration()
confg.sparkOnView = self.view
confg.sparkGenerationView = self.clickButton
confg.totalNumberOfSparkImages = 15
confg.sparkAnimation = .bubbleToUpSide

let sparkAnimation = PKImageSpark(withImage: #imageLiteral(resourceName: "ic_love"), configuration: confg)
sparkAnimation.startSparking()

Licence

PKImageSpark is released under the MIT license.

About

Some cool animations that can be used to show an animation on any event action.

Resources

License

Stars

Watchers

Forks

Packages

No packages published