Latest 0.0.2
Homepage https://github.com/HIkaruSato/PPParticleButton
License MIT
Platforms ios 8.0, requires ARC
Frameworks SpriteKit
Authors

PPParticleButton is a UIButton subClass it has a cool tap animation, even though it can be used anywhere you can use a UIButton.
PPParticleButton uses SKEmitterNode of SpriteKit, to create the tap animation.
alt animation image

Requirements

  • iOS 8.0+
  • Xcode 7.2+

Installation

Create a Podfile.

platform :ios, '8.0'
use_frameworks!
pod 'PPParticleButton'

Execute ‘pod install’

$ pod install

Usage

  1. Select File->New->File…->Resource->SpriteKit Particle File, and create a sksFile.

  2. Cutomize the SksFile on Xcode.
    Cutomize the SksFile

  3. Initialize a PPParticleButton class on code. or set to "PPParticleButton" of button’s className on storyboard.
    Set to

  4. And only after you set the sksFile name (excluding the extension) to particleFileNameMap property of PPPerticleButton.
  • When tapped, works animation always.
ppparticleButton.particleFileNameMap[PPParticleButtonEffectType.Normal] = "sksFile name"

  • When tapped, works animation during button unselected.
ppparticleButton.particleFileNameMap[PPParticleButtonEffectType.UnSelected] = "sksFile name"

  • When tapped, works animation during selected.
ppparticleButton.particleFileNameMap[PPParticleButtonEffectType.Selected] = "sksFile name"

Detail

For more information, please refer to PPParticleButtonExample project.

Latest podspec

{
    "name": "PPParticleButton",
    "version": "0.0.2",
    "summary": "PPParticleButton can particle effect when tapped.",
    "homepage": "https://github.com/HIkaruSato/PPParticleButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "HIkaruSato": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/HIkaruSato/PPParticleButton.git",
        "tag": "0.0.2"
    },
    "source_files": "PPParticleButton/*.swift",
    "frameworks": "SpriteKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This