BubbleButton 0.1.1

BubbleButton 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2016
SwiftSwift Version 3
SPMSupports SPM

Maintained by Kukaapps SDK.



  • By
  • Yagiz

BubbleButton

N|Solid

BubbleButton is Swift 3 button wihch does producuse bubbles.

Installation

Manually

Just download or clone the repo and move BubbleButton.swift file to your project.

Customize

You can customize these properties in Interface Builder or by code:

  • titleForProgress
  • titleForCompletion
  • endAnimationDuration
  • fadeOutAnimationDelay
  • fadeOutAnimationDuration
  • bubbleColor
  • bubbleCount
  • bubbleSpeedMin
  • bubbleSpeedMax
  • bubbleRadiusMin
  • bubbleRadiusMax

Example

You can start animating button after it’s tapped. After your propgress is completed you can call “endAnimationWith” to reset button state.

@IBAction func buttonAction(_ sender: AnyObject)
    {
        bubbleButton.startBubbleAnimationWith(direction: .TopRight)
        print("startingAnimation")

        DispatchQueue.main.asyncAfter(deadline: .now() + 2)
        {
            print("endingAnimation")
            self.bubbleButton.endAnimationWith {
                print("animationIsEnded")
            }
        }
    }

License

MIT

Free Software, Hell Yeah!