@@ -13,8 +13,8 @@ SSSpinnerButton is an elegant button with a different spinner animations.
1313
1414# Features!
1515 - Rounded button when spinner active
16- - Various spinner animations
17- - Dynamic spinner size
16+ - Various spinner animations
17+ - Dynamic spinner size
1818 - Spinner with completion types (Success, fail, error)
1919 - CocoaPods
2020
@@ -41,34 +41,39 @@ SSSpinnerButton is an elegant button with a different spinner animations.
4141# Usage example
4242
4343- In the storyboard add a UIButton and change its class to SSSpinnerButton
44- - ![ Alt text] ( https://github.com/simformsolutions/SSSpinnerButton/blob/master/SpinnerButtonStoryBoard.png?raw=true )
44+ ![ Alt text] ( https://github.com/simformsolutions/SSSpinnerButton/blob/master/SpinnerButtonStoryBoard.png?raw=true )
4545
4646 **StartAnimation**
47-
48- button.startAnimate(spinnerType: SpinnerType.ballClipRotate, spinnercolor: UIColor.red, spinnerSize: 20, complete: {
49- // Your code here
47+
48+ button.startAnimate(spinnerType: SpinnerType.ballClipRotate, spinnercolor: UIColor.red, spinnerSize: 20, complete: {
49+ // Your code here
5050 })
5151
5252
5353 **StopAnimation**
5454
55- button.stopAnimate(complete: {
55+ button.stopAnimate(complete: {
56+ // Your code here
57+ })
58+
59+ **StopAnimation with completion types**
60+
61+ button.stopAnimatingWithCompletionType(completionType: .success, complete: {
5662 // Your code here
5763 })
58-
59- ** StopAnimation with completion types**
60-
61- button.stopAnimatingWithCompletionType(completionType: .success, complete: {
62- // Your code here
63- })
64-
65- ** StopAnimation with completion types and back to defaults**
66-
67- button.stopAnimationWithCompletionTypeAndBackToDefaults(completionType: .fail, backToDefaults: true, complete: {
68- // Your code here
64+
65+ **StopAnimation with completion types and back to defaults**
66+
67+ button.stopAnimationWithCompletionTypeAndBackToDefaults(completionType: .fail, backToDefaults: true, complete: {
68+ // Your code here
6969 })
7070
71+ # Migration
72+ ** Version 3.0.1**
73+ - This version requires Xcode 10.2 and Swift 5.0.
7174
75+ ** Version 2.0.1**
76+ - This version requires Xcode 10.1 and Swift 4.2.
7277# Contribute
7378- We would love you for the contribution to SSspinnerButton, check the LICENSE file for more info.
7479
@@ -80,7 +85,7 @@ SSSpinnerButton is an elegant button with a different spinner animations.
8085- Spinner animations inspired from [ NVActivityIndicatorView] ( https://github.com/ninjaprox/NVActivityIndicatorView )
8186
8287
83- [ swift-image ] :https://img.shields.io/badge/swift-4 .0-orange.svg
88+ [ swift-image ] :https://img.shields.io/badge/swift-5 .0-orange.svg
8489[ swift-url ] : https://swift.org/
8590[ license-image ] : https://img.shields.io/badge/License-MIT-blue.svg
8691[ license-url ] : LICENSE
0 commit comments