Skip to content

Commit d32c5c5

Browse files
authored
Merge pull request #32 from vanvo/master
Support SPM
2 parents 03086cb + e26e576 commit d32c5c5

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

Package.swift

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// swift-tools-version:5.0
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: "StringStylizer",
8+
platforms: [
9+
.iOS(.v10)
10+
],
11+
products: [
12+
// Products define the executables and libraries a package produces, and make them visible to other packages.
13+
.library(
14+
name: "StringStylizer",
15+
targets: ["StringStylizer"]),
16+
],
17+
targets: [
18+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
19+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
20+
.target(
21+
name: "StringStylizer",
22+
path: "StringStylizer"
23+
//exclude: ["Info.plist"]
24+
)
25+
],
26+
swiftLanguageVersions: [
27+
.v5
28+
]
29+
)

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ let str = "some text".stylize().color(.white).size(14).font(.HelveticaNeue).attr
3636
- Swift 5.0~ or Swift 4.0~ or Swift 3.2~
3737

3838
## Installation
39+
### Swift Package Manager
40+
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
41+
42+
Once you have your Swift package set up, adding StringStylizer as a dependency is as easy as adding it to the dependencies value of your Package.swift.
43+
44+
```
45+
dependencies: [
46+
.package(url: "https://github.com/vanvo/StringStylizer.git", .upToNextMajor(from: "5.2.2"))
47+
]
48+
```
49+
3950
### Carthage
4051

4152
+ Install Carthage from Homebrew

0 commit comments

Comments
 (0)