OverlayEditControllerDelegate
@available(iOS 9.0, *)
@objc(PESDKOverlayEditControllerDelegate)
public protocol OverlayEditControllerDelegate : AnyObject
The OverlayEditControllerDelegate
defines methods that allow you to respond to messages from
the OverlayEditControllerDelegate
.
-
Tells the delegate that the controller’s
PhotoEditModel
changed.Declaration
Swift
func overlayEditControllerDidChangePhotoEditModel(_ overlayEditController: OverlayEditController)
Parameters
overlayEditController
The overlay edit controller that changed the photo edit model.
-
Asks the delegate for the scroll view to which zoom events of the overlay edit controller should be forwarded.
Declaration
Swift
func overlayEditControllerTargetScrollView(_ overlayEditController: OverlayEditController) -> UIScrollView?
Parameters
overlayEditController
The overlay edit controller asking for the scroll view.
Return Value
The scroll view which should be the target of the proxy scroll view.
-
Tells the delegate that the controller is about to display the given blend mode in the given cell.
Declaration
Swift
func overlayEditController(_ overlayEditController: OverlayEditController, willDisplay blendMode: BlendMode, in cell: BlendModeCollectionViewCell)
Parameters
overlayEditController
The overlay edit controller that is about to diplay the blend mode.
blendMode
The blend mode that is about to be displayed.
cell
The cell in which the blend mode is displayed.
-
Tells the delegate when the preview view’s preferred insets changed.
Declaration
Swift
func overlayEditController(_ overlayEditController: OverlayEditController, didChangePreferredPreviewViewInsetsAnimated animated: Bool)
Parameters
overlayEditController
The overlay edit controller object that changed the insets.
animated
Whether or not this change should be animated.