40

GitHub - simformsolutions/SSSpinnerButton: SSSpinnerButton is an elegant button...

 5 years ago
source link: https://github.com/simformsolutions/SSSpinnerButton
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

SSspinnerButton

SSSpinnerButton is an elegant button with a diffrent spinner animations.

Swift Version Build Status License Platform PRs Welcome

Alt text

Features!

  • Rounded button when spinner active
  • Various spinner animations
  • CocoaPods

Requirements

  • iOS 10.0+
  • Xcode 9+

Installation

CocoaPods

  • You can use CocoaPods to install SSSpinnerButton by adding it to your Podfile:

     use_frameworks!
     pod 'SSSpinnerButton'
    
  •  import UIKit
     import SSSpinnerButton
    

Manually

  • Download and drop SSSpinnerButton folder in your project.
  • Congratulations!

Usage example

  • In the storyboard add a UIButton and change its class to SSSpinnerButton

  • Alt text

    StartAnimation

    button.startAnimate(spinnerType: SpinnerType.ballClipRotate, spinnercolor: UIColor.red, complete: nil)
    

    StopAnimation

    button.stopAnimate(complete: {
    })
    

Contribute

  • We would love you for the contribution to SSspinnerButton, check the LICENSE file for more info.

Meta

  • Distributed under the MIT license. See LICENSE for more information.

Inspired


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK