https://github.com/opensooq/voytek
https://github.com/opensooq/voytek
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opensooq/voytek
- Owner: OpenSooq
- License: mit
- Created: 2019-12-01T16:41:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T14:26:55.000Z (almost 6 years ago)
- Last Synced: 2025-07-07T19:00:28.161Z (about 1 year ago)
- Language: Swift
- Size: 4.79 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Voytek [iOS Photo Editor]
======================
## Features
- [x] Cropping
- [x] Adding images -Stickers-
- [x] Adding Text with colors
- [x] Drawing with colors
- [x] Scaling and rotating objects
- [x] Deleting objects
- [x] Saving to photos and Sharing
- [x] Cool animations
- [x] Uses iOS Taptic Engine feedback
## Installation
### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ gem install cocoapods
```
To integrate iOS Photo Editor into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target '' do
pod 'iOSPhotoEditor'
end
```
Then, run the following command:
```bash
$ pod install
```
## Usage
### Photo
The `PhotoEditorViewController`.
```swift
let photoEditor = PhotoEditorViewController(nibName:"PhotoEditorViewController",bundle: Bundle(for: PhotoEditorViewController.self))
//PhotoEditorDelegate
photoEditor.photoEditorDelegate = self
//The image to be edited
photoEditor.image = image
//Stickers that the user will choose from to add on the image
photoEditor.stickers.append(UIImage(named: "sticker" )!)
//Optional: To hide controls - array of enum control
photoEditor.hiddenControls = [.crop, .draw, .share]
//Optional: Colors for drawing and Text, If not set default values will be used
photoEditor.colors = [.red,.blue,.green]
//Present the View Controller
present(photoEditor, animated: true, completion: nil)
```
The `PhotoEditorDelegate` methods.
```swift
func doneEditing(image: UIImage) {
// the edited image
}
func canceledEditing() {
print("Canceled")
}
```

# Live Demo appetize.io
[](https://appetize.io/app/jtanmwtzbz1favhvhw5g24n7b0?device=iphone7plus&scale=50&orientation=portrait&osVersion=10.3)
# Demo Video
[](https://youtu.be/9VeIl9i30dI)
## Credits
https://github.com/eventtus/photo-editor
## License
Released under the [MIT License](http://www.opensource.org/licenses/MIT).