Common

  • The CameraViewController class provides a dialog to perform serveral tasks regarding the camera. These include taking photos, switching on the flash, and such.

    See more

    Declaration

    Swift

    @available(iOS 9.0, *)
    @objcMembers
    @objc(PESDKCameraViewController)
    open class CameraViewController : UIViewController
  • An Configuration defines behaviour and look of all view controllers provided by the PhotoEditorSDK. It uses the builder pattern to create an immutable object via a closure. To configure the different editors and viewControllers contained in the SDK, edit their options in the corresponding configure*ViewController method of the ConfigurationBuilder.

    See more

    Declaration

    Swift

    @available(iOS 9.0, *)
    @objcMembers
    @objc(PESDKConfiguration)
    open class Configuration : NSObject
  • IMGLY provides methods to unlock and customize the SDK.

    See more

    Declaration

    Swift

    @available(iOS 9.0, *)
    @objcMembers
    open class IMGLY : NSObject
  • PESDK provides methods to unlock and customize the SDK.

    Declaration

    Swift

    @available(iOS 9.0, *)
    @objcMembers
    public final class PESDK : IMGLY
  • An object that wraps different types of image data.

    The Photo class currently supports URL, Data and UIImage as sources for photos. The image type to choose depends on where the image comes from:

    • Use URL for image files on disk.
    • Use Data for images from the web.
    • Use UIImage only if the image was already used in the UI.

    Using URL or Data will have the least amount of memory footprint because we will do the image scaling without reading the full image if possible. We also try to do this with UIImage, however if the instance of UIImage represents a wide-color image we will have to read the full image which can lead to memory pressure for large images.

    If memory is still an issue when using Data objects, it is recommended that you write the data to disk and initialize a Photo with a file url instead.

    When URL or Data is used we are also able to keep any associated EXIF data, which UIImage does not support.

    The data format can be any image format that can be read by iOS, for example PNG, JPEG or HEIF.

    Note

    You don’t have to pre-scale your image because we’re already doing any work that is necessary.
    See more

    Declaration

    Swift

    @objcMembers
    @objc(PESDKPhoto)
    public final class Photo : NSObject
  • A PhotoEditModel holds information about any modification that should be applied to an image.

    See more

    Declaration

    Swift

    @available(iOS 9.0, *)
    public struct PhotoEditModel : Equatable
  • A PhotoEditRenderer takes a CIImage and a PhotoEditModel as input and takes care of applying all necessary effects and filters to the image. The output image can then be rendered into an EAGLContext or converted into a CGImage instance.

    See more

    Declaration

    Swift

    @available(iOS 9.0, *)
    @objcMembers
    @objc(PESDKPhotoEditRenderer)
    open class PhotoEditRenderer : NSObject
  • A PhotoEditViewController is the main starting point for the SDK. It displays the rendered photo and a menu. It can present PhotoEditToolController objects and react to changes. It can be presented on its own (thus displaying a toolbar for navigation at the bottom) or be embedded into a UINavigationController (thus using the navigation controller’s navigation bar for navigation).

    See more

    Declaration

    Swift

    @available(iOS 9.0, *)
    @objcMembers
    @objc(PESDKPhotoEditViewController)
    open class PhotoEditViewController : MediaEditViewController, BrandedView
  • The PhotoEditViewControllerDelegate protocol defines methods that allow you to respond to the events of an instance of PhotoEditViewController.

    See more

    Declaration

    Swift

    @available(iOS 9.0, *)
    @objc(PESDKPhotoEditViewControllerDelegate)
    public protocol PhotoEditViewControllerDelegate