|
|
@ -6,8 +6,8 @@ import UIKit
|
|
|
|
|
|
|
|
|
|
|
|
@objc
|
|
|
|
@objc
|
|
|
|
public protocol ImageEditorViewDelegate: class {
|
|
|
|
public protocol ImageEditorViewDelegate: class {
|
|
|
|
func imageEditor(presentFullScreenOverlay viewController: UIViewController,
|
|
|
|
func imageEditor(presentFullScreenView viewController: UIViewController,
|
|
|
|
withNavigation: Bool)
|
|
|
|
isTransparent: Bool)
|
|
|
|
func imageEditorPresentCaptionView()
|
|
|
|
func imageEditorPresentCaptionView()
|
|
|
|
func imageEditorUpdateNavigationBar()
|
|
|
|
func imageEditorUpdateNavigationBar()
|
|
|
|
func imageEditorAttachmentCount() -> Int
|
|
|
|
func imageEditorAttachmentCount() -> Int
|
|
|
@ -134,8 +134,8 @@ public class ImageEditorView: UIView {
|
|
|
|
Logger.verbose("")
|
|
|
|
Logger.verbose("")
|
|
|
|
|
|
|
|
|
|
|
|
let brushView = ImageEditorBrushViewController(delegate: self, model: model, currentColor: currentColor)
|
|
|
|
let brushView = ImageEditorBrushViewController(delegate: self, model: model, currentColor: currentColor)
|
|
|
|
self.delegate?.imageEditor(presentFullScreenOverlay: brushView,
|
|
|
|
self.delegate?.imageEditor(presentFullScreenView: brushView,
|
|
|
|
withNavigation: true)
|
|
|
|
isTransparent: false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@objc func didTapCrop(sender: UIButton) {
|
|
|
|
@objc func didTapCrop(sender: UIButton) {
|
|
|
@ -434,8 +434,8 @@ public class ImageEditorView: UIView {
|
|
|
|
model: model,
|
|
|
|
model: model,
|
|
|
|
textItem: textItem,
|
|
|
|
textItem: textItem,
|
|
|
|
maxTextWidthPoints: maxTextWidthPoints)
|
|
|
|
maxTextWidthPoints: maxTextWidthPoints)
|
|
|
|
self.delegate?.imageEditor(presentFullScreenOverlay: textEditor,
|
|
|
|
self.delegate?.imageEditor(presentFullScreenView: textEditor,
|
|
|
|
withNavigation: true)
|
|
|
|
isTransparent: false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// MARK: - Crop Tool
|
|
|
|
// MARK: - Crop Tool
|
|
|
@ -458,8 +458,8 @@ public class ImageEditorView: UIView {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let cropTool = ImageEditorCropViewController(delegate: self, model: model, srcImage: srcImage, previewImage: previewImage)
|
|
|
|
let cropTool = ImageEditorCropViewController(delegate: self, model: model, srcImage: srcImage, previewImage: previewImage)
|
|
|
|
self.delegate?.imageEditor(presentFullScreenOverlay: cropTool,
|
|
|
|
self.delegate?.imageEditor(presentFullScreenView: cropTool,
|
|
|
|
withNavigation: true)
|
|
|
|
isTransparent: false)
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
|
|
// MARK: -
|
|
|
|
// MARK: -
|
|
|
|