Skip to content

Commit

Permalink
Add Swift Package Installation instruction to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanlisovyi committed Sep 18, 2020
1 parent c573a3f commit e159b30
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,28 @@ To run the example project; clone the repo, and run `pod install` from the Proje
## Requirements

## Installation

### CocoaPods
YouTube-Player-iOS-Helper is available through [CocoaPods](http://cocoapods.org). To install
the library, add the following line to your Podfile and replace "x.y.z" with the latest version.

pod "youtube-ios-player-helper", "~> x.y.z"

After installing in your project and opening the workspace, to use the library:
### Swift Package Manager
Add the following line to the dependencies in your `Package.swift`:
```swift
.package("https://github.com/youtube/youtube-ios-player-helper.git", from: "1.0.3")
```
Add `YouTubeiOSPlayerHelper` to your target's dependencies.
```swift
.target(name: "TargetName",
dependencies: [
"YouTubeiOSPlayerHelper"
]
)
```

## Usage
After installing in your project, to use the library:

1. Drag a UIView the desired size of your player onto your Storyboard.
2. Change the UIView's class in the Identity Inspector tab to YTPlayerView
Expand Down

0 comments on commit e159b30

Please sign in to comment.