PhotoEditPreviewController
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKPhotoEditPreviewController)
open class PhotoEditPreviewController : MediaEditPreviewController
The PhotoEditPreviewController
is responsible for previewing changes to a photo and displaying
the image in a scrollable container. It is passed a full resolution UIImage
object and handles
downscaling automatically.
-
The photo that is being previewed.
Declaration
Swift
public let photo: Photo
-
Creates a newly initialized photo edit preview controller for the given photo and the given photo edit model.
Declaration
Swift
public required convenience init(photoAsset: Photo, photoEditModel: PhotoEditModel = PhotoEditModel())
Parameters
photoAsset
The photo to preview.
photoEditModel
The photo edit model to render.
-
Generates a resized version of the high resolution photo such that it fits within the bounds of
workImageSize(for:)
while maintaining the original aspect ratio.Declaration
Swift
open override func loadBaseImage(_ completion: @escaping (UIImage?) -> Void)