Fix SwiftPM instructions in Readme.md

This commit is contained in:
Sami Samhuri 2024-10-18 14:41:53 -07:00 committed by GitHub
parent 5c9c5833e5
commit 4fa67c81e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,12 +27,14 @@ When you're integrating this into an app with Xcode then go to your project's Pa
### Swift Package Manager (SPM)
When you're integrating this using SPM on its own then add this to your Package.swift file:
When you're integrating this using SPM on its own then add this to the list of dependencies your Package.swift file:
```swift
.package(url: "https://github.com/samsonjs/SJSAssetExportSession.git", .upToNextMajor(from: "0.2"))
.package(url: "https://github.com/samsonjs/SJSAssetExportSession.git", .upToNextMajor(from: "0.2.0"))
```
and then add `"SJSAssetExportSession"` to all of the lists of dependencies in your target as well.
## Usage
There are two ways of exporting assets: one using dictionaries for audio and video settings just like with `SDAVAssetExportSession`, and the other using a builder-like API with data structures for commonly used settings.