Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bevy/photo-editor
Photo editor with a lot of cool features
https://github.com/bevy/photo-editor
instagram ios photo-editing swift
Last synced: 3 months ago
JSON representation
Photo editor with a lot of cool features
- Host: GitHub
- URL: https://github.com/bevy/photo-editor
- Owner: bevy
- License: mit
- Created: 2017-04-23T10:21:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-02T16:23:29.000Z (over 2 years ago)
- Last Synced: 2024-07-18T22:23:04.024Z (4 months ago)
- Topics: instagram, ios, photo-editing, swift
- Language: Swift
- Homepage:
- Size: 4.92 MB
- Stars: 881
- Watchers: 36
- Forks: 337
- Open Issues: 59
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 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
[![Demo](Assets/appetize.png)](https://appetize.io/app/jtanmwtzbz1favhvhw5g24n7b0?device=iphone7plus&scale=50&orientation=portrait&osVersion=10.3)# Demo Video
[![Demo](https://img.youtube.com/vi/9VeIl9i30dI/0.jpg)](https://youtu.be/9VeIl9i30dI)## Credits
Written by [Mohamed Hamed](https://github.com/M-Hamed).
Initially sponsored by [![Eventtus](http://assets.eventtus.com/logos/eventtus/standard.png)](http://eventtus.com)
## License
Released under the [MIT License](http://www.opensource.org/licenses/MIT).