Latest 0.4
License MIT
Platforms ios 8.0, requires ARC

Custom UIButton component with some interesting animations written in Swift.


CocoaPods installation

Add pod 'JPButton' to your Podfile.


Copy files from Classes folder into your project. Set the UIButton class in Nib to JPButton or create it programmatically.

Open the demo project to check all available options.

Breathing animation


All properties can be set from Interface Builder or from code

  • To enable the breathing animation, set breathingEnabled property to true.
  • Customize animation duration by changing breathDuration property.

Border Runner animation


  • To start the border runner animation, just call startBorderRunner method. Runner color, shape and size can be customized by changing parameters of the startBorderRunner method.
  • To stop the animation, call the stopAndRemoveBorderRunner method.

Breathing + Border Runner


You can combine breathing animation with the border runner animation by setting the breathingEnabled property to true and calling the startBorderRunner method.


Josip Petric, [email protected]


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

Latest podspec

    "name": "JPButton",
    "version": "0.4",
    "summary": "Custom UIButton effects and animations.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Josip Petric": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.4"
    "platforms": {
        "ios": "8.0"
    "requires_arc": true,
    "source_files": "Classes/*.swift",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This