iOSPhotoEditor 1.0.0

iOSPhotoEditor 1.0.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布日期上次发布2019年8月
SPM支持 SPM

维护者:[a href="/owners/21406">Mohamed Hamed。



  • By
  • Mohamed Hamed

iOS Photo Editor

功能

  • [x] 裁剪
  • [x] 添加图片 -贴纸-
  • [x] 添加带颜色的文字
  • [x] 使用颜色绘制
  • [x] 缩放和旋转对象
  • [x] 删除对象
  • [x] 保存到照片和分享
  • [x] 酷炫的动画
  • [x] 使用 iOS Taptic Engine 反馈

V 0.4 版本新功能

感谢 https://github.com/sprint84/PhotoCropEditor

现在支持裁剪 💃🏻

使用方法

照片

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)

PhotoEditorDelegate 方法。

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

Live Demo appetize.io

Demo

演示视频

Demo

致谢

Mohamed Hamed 编写。

最初由 Eventtus 赞助。

许可证

MIT 许可证 下发布。