Coder Social home page Coder Social logo

taroyuyu / ssspinnerbutton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simformsolutionspvtltd/ssspinnerbutton

0.0 0.0 0.0 9.09 MB

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

License: MIT License

Ruby 2.49% Swift 96.48% Objective-C 1.04%

ssspinnerbutton's Introduction

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

ssspinnerbutton's People

Contributors

bhargavbajani-simformsolutions avatar damarte avatar ketan-simform avatar ketanchopda avatar simform-solutions avatar ss18 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.