Skip to content

Commit 6bae84a

Browse files
committed
Added SPM Support to SSSpinner Button
1 parent c15e1a1 commit 6bae84a

6 files changed

Lines changed: 54 additions & 10 deletions

File tree

Package.swift

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version: 5.7
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "SSSpinnerButton",
8+
platforms: [.iOS(.v11)],
9+
products: [
10+
// Products define the executables and libraries a package produces, and make them visible to other packages.
11+
.library(
12+
name: "SSSpinnerButtonr",
13+
targets: ["SSSpinnerButton"]),
14+
],
15+
dependencies: [
16+
// Dependencies declare other packages that this package depends on.
17+
// .package(url: /* package url */, from: "1.0.0"),
18+
],
19+
targets: [
20+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
21+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
22+
.target(
23+
name: "SSSpinnerButton",
24+
dependencies: [],
25+
path: "SSSpinnerButton")
26+
]
27+
)

README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SSSpinnerButton
22

33

4-
SSSpinnerButton is an elegant button with a different spinner animations.
4+
SSSpinnerButton is a versatile library for iOS developers, written in Swift, that allows you to easily create and customize spinner buttons. With this library, you can add loading spinners to your buttons, providing visual feedback to your users while they wait for a process to complete. The library offers a wide range of customizable options, including spinner color, size as well as button text, font, and background color. SSSpinnerButton is simple to integrate into your existing projects and offers excellent performance, making it an essential tool for any iOS developer looking to enhance their user interface.
55

66
[![Swift Version][swift-image]][swift-url]
77
[![Build Status][travis-image]][travis-url]
@@ -37,7 +37,11 @@ SSSpinnerButton is an elegant button with a different spinner animations.
3737

3838
**Carthage**
3939

40-
Add `github simformsolutions/SSSpinnerButton` to your project's Cartfile
40+
- Add `github simformsolutions/SSSpinnerButton` to your project's Cartfile
41+
42+
**Swift Package Manager**
43+
44+
- When using Xcode 11 or later, you can install `SSSpinnerButton` through [Swift Package Manager](https://swift.org/package-manager/) by going to your Project settings > `Swift Packages` and add the repository by providing the GitHub URL. Alternatively, you can go to `File` > `Swift Packages` > `Add Package Dependencies...`
4145

4246
**Manually**
4347
- Download and drop **SSSpinnerButton** folder in your project.
@@ -85,15 +89,24 @@ Add `github simformsolutions/SSSpinnerButton` to your project's Cartfile
8589

8690
**Version 2.0.1**
8791
- This version requires Xcode 10.1 and Swift 4.2.
88-
# Contribute
89-
- We would love you for the contribution to SSspinnerButton, check the LICENSE file for more info.
90-
91-
# Meta
92-
- Distributed under the MIT license. See LICENSE for more information.
9392

93+
## 🤝 How to Contribute
94+
95+
Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! :muscle:
96+
97+
Check out our [**Contributing Guide**](CONTRIBUTING.md) for ideas on contributing.
98+
99+
## Find this example useful? ❤️
100+
101+
Give a ⭐️ if this project helped you!
102+
103+
## Check out our other Libraries
104+
105+
<h3><a href="https://github.com/SimformSolutionsPvtLtd/Awesome-Mobile-Libraries"><u>🗂 Simform Solutions Libraries→</u></a></h3>
106+
107+
## MIT License
94108

95-
# Inspired
96-
- Spinner animations inspired from [NVActivityIndicatorView](https://github.com/ninjaprox/NVActivityIndicatorView)
109+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
97110

98111

99112
[swift-image]:https://img.shields.io/badge/swift-5.0-orange.svg

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 = "3.1.0"
11+
s.version = "3.2.0"
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/SpinerShapes/SpinnerShapeWithAnimation/SSCircleScaleMultiple.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//
88

99
import Foundation
10+
import UIKit
11+
import QuartzCore
1012

1113
class SSCircleScaleMultiple: SSSpinnerAnimationDelegate {
1214

SSSpinnerButton/SpinerShapes/SpinnerShapeWithAnimation/SSCircleWaveSpin.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import Foundation
10+
import UIKit
1011

1112
class SSCircleWaveSpin: SSSpinnerAnimationDelegate {
1213

SSSpinnerButton/SpinerShapes/SpinnerShapeWithAnimation/SSPacman.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import Foundation
10+
import UIKit
1011

1112
class SSPacman: SSSpinnerAnimationDelegate {
1213

0 commit comments

Comments
 (0)