PhotoPreviewControlling
public protocol PhotoPreviewControlling
Types that adopt PhotoPreviewController
can control the behavior of a
PhotoEditPreviewController
when active.
-
If set to
true
, the default preview view is used. If set tofalse
, the default preview view is hidden and you are responsible for displaying the image.Declaration
Swift
var wantsDefaultPreviewView: Bool { get }
-
The render mode that the preview image should be rendered with when this tool is active.
Declaration
Swift
var preferredRenderMode: PESDKRenderMode { get }
-
The background color that should be used when this tool is active.
Declaration
Swift
var preferredPreviewBackgroundColor: UIColor? { get }
-
The insets that should be applied to the preview view when this tool is active.
Declaration
Swift
var preferredPreviewViewInsets: UIEdgeInsets { get }
-
The scale factor that should be applied to the main preview view when this tool is on top of the stack.
Declaration
Swift
var preferredDefaultPreviewViewScale: CGFloat { get }
-
Can be used to forward messages to this instance to another implementation of
PhotoPreviewController
. This is useful if a contained view controller should control the preview instead of aPhotoEditToolController
for example.Declaration
Swift
var photoPreviewControllingTarget: PhotoPreviewControlling? { get }