Latest 0.5.0
Homepage https://github.com/bluelocate/RNPulseButton
License MIT
Platforms ios 9.0
Frameworks UIKit, Foundation
Authors

Platform
Swift
Version
License

Easy and Customizable iOS Pulse Animation Effect

Demo

Example gif

Installation

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

pod 'RNPulseButton'

At a Glance

Create Cusom Pulse

StoryBoard : Just make it! Adjust property from storyboard inspector

Programmatically

let pulse2 = RNPulseButton(frame: CGRect(x: 150, y: 300, width: 100, height: 100),
                           pulseRadius: 100,
                           pulseCount: 4,
                           pulseDuration: 3,
                           intervalTime: 0.4,
                           scaleFactor: 3,
                           repeatCount: 100,
                           pulseColor: UIColor.red,
                           normalImage: nil, selectedImage: nil)

Animation Start

pulse2.start()

Animation Stop

pulse2.stop()

Customizable Property

    pulseRadius: Double     // Pulse Radius
    pulseCount: Int         // Number of Pulse
    pulseDuration: Double   // Pulse Animation Duration
    intervalTime: Double    // Interval between Pulse
    scaleFactor: CGFloat    // Pulse Radius Scale Factor
    repeatCount: Int        // Animation Repeat Count
    pulseColor: UIColor     // Set Pulse Color
    normalImage: UIImage?   // (Optional) Set Normal State Image
    selectedImage: UIImage? // (Optional) Set Selected State Image

Author

Rodo, [email protected]

License

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

Latest podspec

{
    "name": "RNPulseButton",
    "version": "0.5.0",
    "summary": "Easy and Customizable Pulse Animation Effect Button!",
    "description": "Easy and Customizable Pulse Animation Effect Button! Be Simple and convenience.",
    "homepage": "https://github.com/bluelocate/RNPulseButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Rodo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bluelocate/RNPulseButton.git",
        "tag": "0.5.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Sources/*.swift",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This