SSSpinnerButton Save Abandoned

Forget about typical stereotypic loading, It's time to change. SSSpinnerButton is an elegant button with a diffrent spinner animations.

Project README

SSspinnerButton

SSSpinnerButton is an elegant button with a different spinner animations.

Swift Version Build Status License Platform PRs Welcome

Alt text

Features!

  • Rounded button when spinner active
  • Various spinner animations
  • Dynamic spinner size
  • Spinner with completion types (Success, fail, error)
  • 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
    

Carthage

Add github simformsolutions/SSSpinnerButton to your project's Cartfile

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, spinnerSize: 20, complete: {
        // Your code here
    })
    

    StopAnimation

    button.stopAnimate(complete: {
        // Your code here
    })
    

    StopAnimation with completion types

    button.stopAnimatingWithCompletionType(completionType: .success, complete: {
        // Your code here
    })
    

    StopAnimation with completion types and back to defaults

    button.stopAnimationWithCompletionTypeAndBackToDefaults(completionType: .fail, backToDefaults: true, complete: {
        // Your code here
    })
    

Migration

Version 3.0.1

  • This version requires Xcode 10.2 and Swift 5.0.

Version 2.0.1

  • This version requires Xcode 10.1 and Swift 4.2.

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

Open Source Agenda is not affiliated with "SSSpinnerButton" Project. README Source: SimformSolutionsPvtLtd/SSSpinnerButton

Open Source Agenda Badge

Open Source Agenda Rating