iOSPhotoEditor 1.0.0

iOSPhotoEditor 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2019
SPMSupports SPM

Maintained by Mohamed Hamed.



  • By
  • Mohamed Hamed

iOS Photo Editor

Features

  • [x] Cropping
  • [x] Adding images -Stickers-
  • [x] Adding Text with colors
  • [x] Drawing wihtcolors
  • [x] Scaling and rotating objects
  • [x] Deleting objects
  • [x] Saving to photos and Sharing
  • [x] Cool animations
  • [x] Uses iOS Taptic Engine feedback

New Features in V 0.4

Thanks to https://github.com/sprint84/PhotoCropEditor

It now supports Cropping 💃🏻

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

//To hide controls - array of enum control
photoEditor.hiddenControls = [.crop, .draw, .share]

//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

Credits

Written by Mohamed Hamed.

Initially sponsored by Eventtus

License

Released under the MIT License.