Skip to content

Commit 81e57ca

Browse files
Merge branch 'master' into master
2 parents 03ebb78 + a23ade1 commit 81e57ca

File tree

3 files changed

+29
-21
lines changed

3 files changed

+29
-21
lines changed

README.md

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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

SSSpinnerButton.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = "SSSpinnerButton"
11-
s.version = "2.0.1"
11+
s.version = "3.0.1"
1212
s.summary = "SSSpinnerButton is an elegant button with a different spinner animations."
1313

1414
#s.description = "SSSpinnerButton is an elegant button with a different spinner animations."

SSSpinnerButton.xcodeproj/project.pbxproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
TargetAttributes = {
183183
51AAA5D420C64ED3000F4BCD = {
184184
CreatedOnToolsVersion = 9.2;
185-
LastSwiftMigration = 1010;
185+
LastSwiftMigration = 1020;
186186
ProvisioningStyle = Automatic;
187187
};
188188
};
@@ -406,6 +406,7 @@
406406
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
407407
PRODUCT_BUNDLE_IDENTIFIER = com.simform.SSSpinnerButton;
408408
PRODUCT_NAME = "$(TARGET_NAME)";
409+
SWIFT_VERSION = 5.0;
409410
TARGETED_DEVICE_FAMILY = "1,2";
410411
};
411412
name = Debug;
@@ -421,6 +422,7 @@
421422
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
422423
PRODUCT_BUNDLE_IDENTIFIER = com.simform.SSSpinnerButton;
423424
PRODUCT_NAME = "$(TARGET_NAME)";
425+
SWIFT_VERSION = 5.0;
424426
TARGETED_DEVICE_FAMILY = "1,2";
425427
};
426428
name = Release;
@@ -496,6 +498,7 @@
496498
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
497499
PRODUCT_BUNDLE_IDENTIFIER = com.simform.SSSpinnerButton;
498500
PRODUCT_NAME = "$(TARGET_NAME)";
501+
SWIFT_VERSION = 5.0;
499502
TARGETED_DEVICE_FAMILY = "1,2";
500503
};
501504
name = Analyze;

0 commit comments

Comments
 (0)