Skip to content

Commit

Permalink
docs(README.md): add installation instruction for Swift Package Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
guhungry committed Aug 21, 2024
1 parent a2750df commit b9e4b82
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ iOS Image Processing API to edit photo programmatically.
This library is used by [react-native-photo-manipulator](https://github.com/guhungry/react-native-photo-manipulator/).

## Installation
### Using CocoaPods
Add dependency `Podfile`

```rb
Expand All @@ -18,10 +19,22 @@ target 'Demo' do
# use_frameworks!

# Add WCPhotoManipulator
pod 'WCPhotoManipulator', :git => 'https://github.com/guhungry/ios-photo-manipulator.git', :tag => 'v1.0.0'
pod 'WCPhotoManipulator', :git => 'https://github.com/guhungry/ios-photo-manipulator.git', :tag => 'v2.4.1'

end
```
or
### Using Swift Package Manager
Add dependency in `Package.swift`

```swift
dependencies: [
...,
.package(url: "https://github.com/guhungry/ios-photo-manipulator.git", from: "2.4.2"),
...,
],
```

## Usage
Import using
```objc
Expand Down

0 comments on commit b9e4b82

Please sign in to comment.