Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Latest commit

 

History

History
47 lines (34 loc) · 985 Bytes

File metadata and controls

47 lines (34 loc) · 985 Bytes

AnyImagePicker

AnyImageEditor 已转移至 AnyImageKit

AnyImageEditor 是一个图片编辑器,支持涂鸦、裁剪、马赛克。使用 Swift 编写。

功能

  • 涂鸦
  • 表情
  • 文字
  • 裁剪
  • 马赛克
  • 多平台支持
    • iOS
    • iPadOS
    • Mac Catalyst
    • macOS
    • tvOS

要求

  • iOS 10.0+
  • Xcode 11.0+
  • Swift 5.0+

使用方法

快速上手

import AnyImageEditor

let image = UIImage(named: "test-image")!
let controller = ImageEditorController(image: image, delegate: self)
controller.modalPresentationStyle = .fullScreen
present(controller, animated: true, completion: nil)

/// ImageEditorPhotoDelegate
func imageEditorDidFinishEdit(photo: UIImage) {
  // Your code
}

版权协议

AnyImageEditor 基于 MIT 协议进行分发和使用,更多信息参见协议文件