PKImageSpark 0.1.1

PKImageSpark 0.1.1

Maintained by Pramod Kumar.



  • By
  • Pramod Kumar

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.