Latest 0.4
Homepage https://github.com/josippetric/JPButton
License MIT
Platforms ios 8.0, requires ARC
Authors

Custom UIButton component with some interesting animations written in Swift.

Usage

CocoaPods installation

Add pod 'JPButton' to your Podfile.

Manually

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

JPButton

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

JPButton

  • 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

JPButton

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

Author

Josip Petric, [email protected]

License

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": "https://github.com/josippetric/JPButton",
    "license": "MIT",
    "authors": {
        "Josip Petric": "[email protected]"
    },
    "source": {
        "git": "https://github.com/josippetric/JPButton.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