From b9e4b8257fecfe0128c2fbf9d6a9c7552ab6c036 Mon Sep 17 00:00:00 2001 From: Woraphot Chokratanasombat Date: Wed, 21 Aug 2024 21:47:11 +0700 Subject: [PATCH] docs(README.md): add installation instruction for Swift Package Manager --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf5905e..c82f121 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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