Skip to content

Commit

Permalink
docs: update README for SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
joonchrislee committed Sep 21, 2022
1 parent 93a20a7 commit 1ea9222
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,19 @@ and vice-versa.

## Installation

TokenUI can be installed via [CocoaPods](https://cocoapods.org)
TokenTextView can be installed via [CocoaPods](https://cocoapods.org)

### Swift Package Manager

TokenTextView can be installed via [SPM](https://www.swift.org/package-manager/). Once your Swift package is set up, simply add TokenTextView to `dependencies` in `Package.swift`:

```
dependencies: [
.package(url: "https://github.com/open-turo/token-text-view.git", upToNextMajor:(from:"1.0.0"))
]
```

You can also use Xcode to install TokenTextView via SPM. Go to `File` -> `Swift Packages` -> `Add Package Dependency`. Enter the url (`https://github.com/open-turo/token-text-view.git`), select `Version` -> `Up to next major` and enter `1.0.0` under the `Rules` section. Click `Next` and your package will be installed!

### CocoaPods

Expand Down

0 comments on commit 1ea9222

Please sign in to comment.