Skip to content

Commit fa264cd

Browse files
Merge pull request #10 from simformsolutions/feature/Spinner_Button_component_(new)_With_Completion_Block
Feature/spinner button component (new) with completion block
2 parents 9bf1aab + 591034e commit fa264cd

File tree

101 files changed

+13124
-292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+13124
-292
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ SSSpinnerButton is an elegant button with a different spinner animations.
1414
# Features!
1515
- Rounded button when spinner active
1616
- Various spinner animations
17-
- Dynamic spinner size
17+
- Dynamic spinner size
18+
- Spinner with completion types (Success, fail, error)
1819
- CocoaPods
1920

2021
# Requirements
@@ -54,7 +55,18 @@ SSSpinnerButton is an elegant button with a different spinner animations.
5455
button.stopAnimate(complete: {
5556
// Your code here
5657
})
57-
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
69+
})
5870

5971

6072
# Contribute

SSSpinnerButton.gif

-6.64 MB
Loading

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 = "1.0.3"
11+
s.version = "1.0.4"
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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
5189267820C96E9F0016E3A0 /* SSFailMark.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5189267720C96E9F0016E3A0 /* SSFailMark.swift */; };
1011
519A451220C6A0FD00BD9352 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 51AAA5E420C64ED3000F4BCD /* Info.plist */; };
1112
519A451320C6A15D00BD9352 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 51AAA5DC20C64ED3000F4BCD /* Main.storyboard */; };
1213
51AAA5D920C64ED3000F4BCD /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51AAA5D820C64ED3000F4BCD /* AppDelegate.swift */; };
@@ -24,9 +25,13 @@
2425
51AAA60120C64EF0000F4BCD /* SpinnerTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51AAA5F620C64EF0000F4BCD /* SpinnerTypes.swift */; };
2526
51AAA60220C64EF0000F4BCD /* SSSpinnerButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51AAA5F820C64EF0000F4BCD /* SSSpinnerButton.swift */; };
2627
51AAA60420C65EA5000F4BCD /* .tailor.yml in Resources */ = {isa = PBXBuildFile; fileRef = 51AAA60320C65EA5000F4BCD /* .tailor.yml */; };
28+
730FA84F2136AD4800F6116F /* SSSuccessMark.swift in Sources */ = {isa = PBXBuildFile; fileRef = 730FA84E2136AD4800F6116F /* SSSuccessMark.swift */; };
29+
737852F92137B12B005A1EA6 /* SSErrorMark.swift in Sources */ = {isa = PBXBuildFile; fileRef = 737852F82137B12B005A1EA6 /* SSErrorMark.swift */; };
30+
737852FB2137C745005A1EA6 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 737852FA2137C745005A1EA6 /* Extensions.swift */; };
2731
/* End PBXBuildFile section */
2832

2933
/* Begin PBXFileReference section */
34+
5189267720C96E9F0016E3A0 /* SSFailMark.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SSFailMark.swift; path = SSSpinnerButton/SSSpinnerButton/SpinerShapes/SSFailMark.swift; sourceTree = SOURCE_ROOT; };
3035
51AAA5D520C64ED3000F4BCD /* SSSpinnerButton.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SSSpinnerButton.app; sourceTree = BUILT_PRODUCTS_DIR; };
3136
51AAA5D820C64ED3000F4BCD /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3237
51AAA5DA20C64ED3000F4BCD /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
@@ -45,6 +50,9 @@
4550
51AAA5F620C64EF0000F4BCD /* SpinnerTypes.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SpinnerTypes.swift; sourceTree = "<group>"; };
4651
51AAA5F820C64EF0000F4BCD /* SSSpinnerButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SSSpinnerButton.swift; sourceTree = "<group>"; };
4752
51AAA60320C65EA5000F4BCD /* .tailor.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .tailor.yml; sourceTree = "<group>"; };
53+
730FA84E2136AD4800F6116F /* SSSuccessMark.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSSuccessMark.swift; sourceTree = "<group>"; };
54+
737852F82137B12B005A1EA6 /* SSErrorMark.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSErrorMark.swift; sourceTree = "<group>"; };
55+
737852FA2137C745005A1EA6 /* Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
4856
/* End PBXFileReference section */
4957

5058
/* Begin PBXFrameworksBuildPhase section */
@@ -106,6 +114,7 @@
106114
51AAA5EF20C64EF0000F4BCD /* spinnerShape.swift */,
107115
51AAA5F020C64EF0000F4BCD /* SpinnerShapeWithAnimation */,
108116
51AAA5F620C64EF0000F4BCD /* SpinnerTypes.swift */,
117+
737852FA2137C745005A1EA6 /* Extensions.swift */,
109118
);
110119
path = SpinerShapes;
111120
sourceTree = "<group>";
@@ -126,6 +135,9 @@
126135
51AAA5F320C64EF0000F4BCD /* SSCircleStrokeSpin.swift */,
127136
51AAA5F420C64EF0000F4BCD /* SSLineSpinFadeLoader.swift */,
128137
51AAA5F520C64EF0000F4BCD /* SSSpinnerBallClipRotate.swift */,
138+
5189267720C96E9F0016E3A0 /* SSFailMark.swift */,
139+
730FA84E2136AD4800F6116F /* SSSuccessMark.swift */,
140+
737852F82137B12B005A1EA6 /* SSErrorMark.swift */,
129141
);
130142
path = SpinnerShapeWithAnimation;
131143
sourceTree = "<group>";
@@ -230,7 +242,9 @@
230242
isa = PBXSourcesBuildPhase;
231243
buildActionMask = 2147483647;
232244
files = (
245+
737852F92137B12B005A1EA6 /* SSErrorMark.swift in Sources */,
233246
51AAA5DB20C64ED3000F4BCD /* ViewController.swift in Sources */,
247+
730FA84F2136AD4800F6116F /* SSSuccessMark.swift in Sources */,
234248
51AAA5FA20C64EF0000F4BCD /* spinnerLayers.swift in Sources */,
235249
51AAA5FC20C64EF0000F4BCD /* SSBallRotateChase.swift in Sources */,
236250
51AAA5D920C64ED3000F4BCD /* AppDelegate.swift in Sources */,
@@ -239,7 +253,9 @@
239253
51AAA5FE20C64EF0000F4BCD /* SSCircleStrokeSpin.swift in Sources */,
240254
51AAA5FD20C64EF0000F4BCD /* SSBallSpinFadeLoader.swift in Sources */,
241255
51AAA60120C64EF0000F4BCD /* SpinnerTypes.swift in Sources */,
256+
737852FB2137C745005A1EA6 /* Extensions.swift in Sources */,
242257
51AAA5FF20C64EF0000F4BCD /* SSLineSpinFadeLoader.swift in Sources */,
258+
5189267820C96E9F0016E3A0 /* SSFailMark.swift in Sources */,
243259
51AAA5F920C64EF0000F4BCD /* SpinnerAnimationDelegate.swift in Sources */,
244260
51AAA60020C64EF0000F4BCD /* SSSpinnerBallClipRotate.swift in Sources */,
245261
);

0 commit comments

Comments
 (0)