Alfulayt / photo-editor

Photo editor with a lot of cool features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS Photo Editor

Features

  • Adding images -Stickers-
  • Adding Text -colored-
  • Drawing -colored-
  • Scaling and rotating objects
  • Deleting objects
  • Saving to photos
  • Cool animations
  • Uses iOS Taptic Engine feedback

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate iOS Photo Editor into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'iOSPhotoEditor'
end

Then, run the following command:

$ pod install

Usage

Photo

The PhotoEditorViewController.

let photoEditor = UIStoryboard(name: "PhotoEditor", bundle: Bundle(for: PhotoEditorViewController.self)).instantiateViewController(withIdentifier: "PhotoEditorViewController") as! PhotoEditorViewController

//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" )!)

//Present the View Controller
present(photoEditor, animated: true, completion: nil)

The PhotoEditorDelegate methods.

func imageEdited(image: UIImage) {
    // the edited image
}
    
func editorCanceled() {
    print("Canceled")
}

Live Demo appetize.io

Demo

Demo Video

Demo

License

Open Source, waiting your contributions !!

About

Photo editor with a lot of cool features

License:MIT License


Languages

Language:Swift 89.9%Language:Shell 8.2%Language:Ruby 1.1%Language:Objective-C 0.8%