FocusEditControllerDelegate
@available(iOS 9.0, *)
@objc(PESDKFocusEditControllerDelegate)
public protocol FocusEditControllerDelegate : AnyObject
The FocusEditControllerDelegate
defines methods that allow you to respond to messages from
the FocusEditControllerDelegate
.
-
Tells the delegate that the controller’s
PhotoEditModel
changed.Declaration
Swift
func focusEditControllerDidChangePhotoEditModel(_ focusEditController: FocusEditController)
Parameters
focusEditController
The focus edit controller that changed the photo edit model.
-
Asks the delegate for the preview view.
Declaration
Swift
func focusEditControllerPreviewView(_ focusEditController: FocusEditController) -> UIView?
Parameters
focusEditController
The focus edit controller asking for the preview view.
Return Value
The preview view.
-
Asks the delegate for the scroll view to which zoom events of the focus edit controller should be forwarded.
Declaration
Swift
func focusEditControllerTargetScrollView(_ focusEditController: FocusEditController) -> UIScrollView?
Parameters
focusEditController
The focus edit controller asking for the scroll view.
Return Value
The scroll view which should be the target of the proxy scroll view.
-
Asks the delegate for the untransformed image size.
Declaration
Swift
func focusEditControllerUntransformedImageSize(_ focusEditController: FocusEditController) -> CGSize
Parameters
focusEditController
The foucs edit controller asking for the size.
Return Value
The untransformed image size.
-
Tells the delegate when the preview view’s preferred insets changed.
Declaration
Swift
func focusEditController(_ focusEditController: FocusEditController, didChangePreferredPreviewViewInsetsAnimated animated: Bool)
Parameters
focusEditController
The focus edit controller object that changed the insets.
animated
Whether or not this change should be animated.