Skip to content

Commit

Permalink
Merge pull request #32 from vanvo/master
Browse files Browse the repository at this point in the history
Support SPM
  • Loading branch information
kazuhiro4949 committed Jul 4, 2022
2 parents 03086cb + e26e576 commit d32c5c5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "StringStylizer",
platforms: [
.iOS(.v10)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "StringStylizer",
targets: ["StringStylizer"]),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "StringStylizer",
path: "StringStylizer"
//exclude: ["Info.plist"]
)
],
swiftLanguageVersions: [
.v5
]
)
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ let str = "some text".stylize().color(.white).size(14).font(.HelveticaNeue).attr
- Swift 5.0~ or Swift 4.0~ or Swift 3.2~

## Installation
### Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

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.

```
dependencies: [
.package(url: "https://github.com/vanvo/StringStylizer.git", .upToNextMajor(from: "5.2.2"))
]
```

### Carthage

+ Install Carthage from Homebrew
Expand Down

0 comments on commit d32c5c5

Please sign in to comment.