Skip to content

Commit 5cb6c18

Browse files
Initial commit
Add Spinner Button Files Added Demo
1 parent be1447e commit 5cb6c18

File tree

139 files changed

+21705
-1
lines changed

Some content is hidden

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

139 files changed

+21705
-1
lines changed

.tailor.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Name the file as below - will be hidden by nature
2+
# .tailor.yml
3+
# Rules reference - https://github.com/sleekbyte/tailor/wiki/Rules#constant-naming
4+
5+
6+
# // tailor:off
7+
# swift code - multiline
8+
# // tailor:on
9+
10+
# single line // tailor:disable
11+
12+
13+
include:
14+
- SSSpinnerButton # Inspect all Swift files under "Spinner/"
15+
16+
exclude:
17+
18+
only:
19+
# class, enum, struct, and protocol names should follow UpperCamelCase naming convention : several words are joined together, and the first letter of every word is capitalized
20+
- upper-camel-case
21+
# method, var, and enum value names should follow lowerCamelCase naming convention: first letter of the entire word is lowercase, but subsequent first letters are uppercase.
22+
- lower-camel-case
23+
# Global constants should follow either UpperCamelCase or lowerCamelCase naming conventions. Local constants should follow lowerCamelCase naming conventions.
24+
- constant-naming
25+
# Prefer a single space before and after '->'.
26+
- arrow-whitespace
27+
# There should be no whitespace immediately before/after an opening chevron < and before the closing chevron >.
28+
- angle-bracket-whitespace
29+
# There should be no whitespace preceding the colon, exactly one whitespace after the colon for: var, class, struct, protocol, extension, func, and tuple declarations, dict literals and types & case statements
30+
- colon-whitespace
31+
# Prefer no spaces before and exactly one space after a comma (',') in the following structures: Identifier Lists, Switch Case Item Lists, Parameter Lists, Enum Case Lists, Array Literal Items
32+
- comma-whitespace
33+
# Prefer single space around operator in operator declarations.
34+
- operator-whitespace
35+
# Swift source files should terminate with exactly 1 \n character, not 0 nor more than 1.
36+
- terminating-newline
37+
# There should be no whitespace immediately before/after an opening parenthesis ( and before the closing parenthesis ).
38+
# NOT SUPPORTED - parentheses-whitespace
39+
# Flag whitespace after the last non-whitespace character on each line until the newline.
40+
# - trailing-whitespace
41+
# Prefer at least one whitespace character after a comment opening symbol (//, ///, /*, or /**) and at least one whitespace character before a comment closing symbol (*/).
42+
- comment-whitespace
43+
# Every function and method declaration should have one blank line before and after itself. An exception to this rule are functions that are declared at the start of a file (only need one blank line after their declaration) or at the end of a file (only need one blank line before their declaration).
44+
- function-whitespace
45+
# Enforce a line limit on the lengths of class bodies.
46+
# NOT SUPPORTED - max-class-length 1000
47+
# Enforce a line limit on the lengths of closure bodies.
48+
# NOT SUPPORTED - max-closure-length 100
49+
# Enforce a line limit on the lengths of function bodies.
50+
# NOT SUPPORTED - max-function-length 100
51+
# Enforce a character limit on the length of each line.
52+
# NOT SUPPORTED - max-line-length 1000
53+
# Enforce a character limit on the maximum length of each construct name for classes, enums, enumcases, structs, protocols, elements, functions, labels, setters, typealiases, types, variables, and constants.
54+
# NOT SUPPORTED - max-name-length 100
55+
# Enforce a character limit on the minimum length of each construct name for classes, enums, enumcases, structs, protocols, elements, functions, labels, setters, typealiases, types, variables, and constants.
56+
# NOT SUPPORTED - min-name-length 5
57+
# should follow the One True Brace Style (1TBS)
58+
- brace-style
59+
# NEVER DISABLE - void using the forced form of the type cast operator (as!) because Swift is not able to determine at compile time if the type conversion will succeed.
60+
- forced-type-cast
61+
# Multiple import statements should not be defined on a single line.
62+
- multiple-imports
63+
# NEVER DISABLE - TODO comments should be defined separately using non-nested single line comments. They should adhere to the <TODO: description> or <TODO(developer-name): description> syntax.
64+
- todo-syntax
65+
# Optional binding lists should not have consecutive var/let bindings. All constants must be preceded by at most one let binding. All variables must be preceded by only one var binding.
66+
# NOT SUPPORTED - redundant-optional-binding

README.md

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,68 @@
1-
# SSSpinnerButton
1+
# SSspinnerButton
2+
SSSpinnerButton is an elegant button with a diffrent spinner animations.
3+
[![Swift Version][swift-image]][swift-url]
4+
[![Build Status][travis-image]][travis-url]
5+
[![License][license-image]][license-url]
6+
[![Platform][platform-image]][platform-url]
7+
[![PRs Welcome][PR-image]][PR-url]
8+
9+
![Alt text](https://github.com/simformsolutions/SSSpinnerButton/blob/master/SSSpinnerButton.gif?raw=true)
10+
11+
# Features!
12+
- Rounded button when spinner active
13+
- Various spinner animations
14+
- CocoaPods
15+
16+
# Requirements
17+
- iOS 10.0+
18+
- Xcode 9+
19+
20+
# Installation
21+
**CocoaPods**
22+
- You can use CocoaPods to install SSSpinnerButton by adding it to your Podfile:
23+
24+
use_frameworks!
25+
pod 'SSSpinnerButton', :git => 'https://github.com/simformsolutions/SSSpinnerButton'
26+
27+
-
28+
import UIKit
29+
import SSSpinnerButton
30+
31+
**Manually**
32+
- Download and drop **SSSpinnerButton** folder in your project.
33+
- Congratulations!
34+
35+
# Usage example
36+
- In the storyboard add a UIButton and change its class to SSSpinnerButton
37+
### StartAnimation
38+
39+
button.startAnimate(spinnerType: SpinnerType.ballClipRotate, spinnercolor: UIColor.red, complate: nil)
40+
41+
### StopAnimation
42+
43+
button.stopAnimate(complate: {
44+
})
45+
46+
# [Documents](https://github.com/simformsolutions/SSSpinnerButton/blob/master/SSSpinnerButtons/docs/index.html)
47+
48+
49+
# Contribute
50+
- We would love you for the contribution to SSspinnerButton, check the LICENSE file for more info.
51+
# Meta
52+
- Distributed under the MIT license. See LICENSE for more information.
53+
54+
55+
[swift-image]:https://img.shields.io/badge/swift-4.0-orange.svg
56+
[swift-url]: https://swift.org/
57+
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
58+
[license-url]: LICENSE
59+
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
60+
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
61+
[codebeat-image]: https://codebeat.co/assets/svg/badges/C-ffb83f-7198e9a1b7ad7f73977b0c9a5c7c3fffbfa25f262510e5681fd8f5a3188216b0.svg
62+
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com
63+
[platform-image]:https://img.shields.io/cocoapods/p/LFAlertController.svg?style=flat
64+
[platform-url]:http://cocoapods.org/pods/LFAlertController
65+
[cocoa-image]:https://img.shields.io/cocoapods/v/EZSwiftExtensions.svg
66+
[cocoa-url]:https://img.shields.io/cocoapods/v/LFAlertController.svg
67+
[PR-image]:https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
68+
[PR-url]:http://makeapullrequest.com

SSSpinnerButton.gif

7.37 MB
Loading

SSSpinnerButton.podspec

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#
2+
# Be sure to run `pod spec lint SSSpinnerButton.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
Pod::Spec.new do |s|
10+
s.name = "SSSpinnerButton"
11+
s.version = "0.0.1"
12+
s.summary = "SSSpinnerButton is an elegant button with a diffrent spinner animations."
13+
14+
#s.description = "SSSpinnerButton is an elegant button with a diffrent spinner animations."
15+
16+
s.homepage = 'https://github.com/simformsolutions/SSSpinnerButton.git'
17+
18+
#s.license = "MIT"
19+
s.license = { :type => 'MIT', :file => 'LICENSE' }
20+
21+
s.author = { "Bhargav Bajani" => "[email protected]" }
22+
s.platform = :ios
23+
24+
s.ios.deployment_target = "10.0"
25+
26+
s.source = { :git => "https://github.com/simformsolutions/SSSpinnerButton.git", :tag => "#{s.version}" }
27+
#s.source = { :path => ".", :tag => "#{s.version}" }
28+
29+
s.source_files = 'SSSpinnerButton/SSSpinnerButton/**/*.swift'
30+
#s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.0' }
31+
s.documentation_url = 'docs/index.html'
32+
33+
34+
35+
end

0 commit comments

Comments
 (0)