Skip to content

Commit

Permalink
Add Swift Package Manager to the README file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreos committed Mar 15, 2021
1 parent 2de640d commit a1ac4d7
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 @@ -11,12 +11,24 @@ A simple UILabel category meant to add copy functionality to it.
# Installation

### CocoaPods
The easiest way of installing UILabel+Copyable is via [CocoaPods](http://cocoapods.org/).
UILabel+Copyable is available via [CocoaPods](http://cocoapods.org/).

```ruby
pod 'UILabel+Copyable', '~> 2.0'
```

### Swift Package Manager

The [Swift Package Manager](https://swift.org/package-manager/) is also supported

Once you have your Swift package set up, adding UILabel+Copyable as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`:

```swift
dependencies: [
.package(url: "https://github.com/alexandreos/UILabel-Copyable.git", .upToNextMajor(from: "2.0"))
]
```

### Old-fashioned way

- Add `UILabel+Copyable.swift` to your project.
Expand Down

0 comments on commit a1ac4d7

Please sign in to comment.