Classes

The following classes are available globally.

  • A GradientView shows a linear gradient from its top to its bottom.

    See more

    Declaration

    Swift

    @objc(PESDKGradientView) open class GradientView: UIView
  • A CropHandleView represents the interactive, draggable part of a crop rect.

    See more

    Declaration

    Swift

    @objc(PESDKCropHandleView) open class CropHandleView: UIView
  • A SeparatorCollectionViewCell is a cell that shows a single 1 pt wide vertical line. It is usually used to represent a seperator between other cells.

    See more

    Declaration

    Swift

    @objc(PESDKSeparatorCollectionViewCell) open class SeparatorCollectionViewCell: UICollectionViewCell
  • The default logger provided by the SDK. It will log into the xcode console.

    See more

    Declaration

    Swift

    @objc(PESDKDefaultLogger) public class DefaultLogger: NSObject, LoggerProtocol
  • This class represents a group of the images.

    See more

    Declaration

    Swift

    @objc(PESDKFrameImageGroup) open class FrameImageGroup: NSObject
  • The configuration for the build engine.

    See more

    Declaration

    Swift

    @objc(PESDKCustomPatchConfiguration) open class CustomPatchConfiguration: NSObject
  • A framebuilder for custom patches. Each patch consists of four groups. There are two basic layouts. The first one places the top and bottom group above the full width of the image, and the left and right group in between. The second layout works the other way around.

    See more

    Declaration

    Swift

    @objc(PESDKCustomPatchFrameBuilder) open class CustomPatchFrameBuilder: NSObject, FrameBuilder
  • A FocusToolController is reponsible for displaying the UI to adjust the focus of an image.

    Declaration

    Swift

    @objc(PESDKFocusToolController) open class FocusToolController: StackLayoutToolController
  • The CanvasView is responsible for presenting a painting and handling touch events related to paintings.

    See more

    Declaration

    Swift

    @objc(PESDKCanvasView) open class CanvasView: GLKView
  • This filter adds or takes away clarity of an image.

    See more

    Declaration

    Swift

    @objc(PESDKClarityFilter) open class ClarityFilter: CIFilter
  • The PhotoEffect class describes an effect that can be applied to a photo.

    See more

    Declaration

    Swift

    @objc(PESDKPhotoEffect) open class PhotoEffect: NSObject
  • A ModeCollectionViewCell is a cell that displays a label within a frame

    See more

    Declaration

    Swift

    open class ModeCollectionViewCell: UICollectionViewCell
  • A sticker category data source provides the sticker categories that should be displayed in the sticker tool.

    See more

    Declaration

    Swift

    @objc(PESDKStickerCategoryDataSource) open class StickerCategoryDataSource: NSObject
  • An SpriteController manages all sprites that have been added to an image and hosts the sprite’s container view.

    See more

    Declaration

    Swift

    @objc(PESDKSpriteController) open class SpriteController: NSObject
  • 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

    @objc(PESDKCameraViewController) open class CameraViewController: UIViewController
  • A ColorCollectionViewCell is a cell that shows a solid color and an image view on top of that color when the cell is selected. It also has a selectionIndicator to show whether or not the cell is currently selected.

    See more

    Declaration

    Swift

    @objc(PESDKColorCollectionViewCell) open class ColorCollectionViewCell: UICollectionViewCell
  • This class represents a gradient control view. It is used within the focus tool to visualize the chosen focus parameters.

    See more

    Declaration

    Swift

    @objc(PESDKFocusGradientView) open class FocusGradientView: UIControl
  • AnimationDelegate can be used as the delegate of a CAAnimation to easily specify a completion block.

    See more

    Declaration

    Swift

    @objc(PESDKAnimationDelegate) open class AnimationDelegate: NSObject, CAAnimationDelegate
  • Applies a linear focus to an instance of CIImage.

    See more

    Declaration

    Swift

    @objc(PESDKLinearFocusFilter) open class LinearFocusFilter: CIFilter
  • Applies a radial focus to an instance of CIImage.

    See more

    Declaration

    Swift

    @objc(PESDKRadialFocusFilter) open class RadialFocusFilter: CIFilter
  • A CropMaskView is a view that blurs the content behind it.

    See more

    Declaration

    Swift

    @objc(PESDKCropMaskView) open class CropMaskView: UIView
  • A BrushColorToolController is reponsible for displaying the UI to adjust the color of the brush that will be drawn on the image.

    Declaration

    Swift

    @objc(PESDKBrushColorToolController) open class BrushColorToolController: ColorToolController
  • A StampGenerator is responsible for generating a stamp image that is used by a brush to draw a stroke.

    See more

    Declaration

    Swift

    @objc(PESDKStampGenerator) open class StampGenerator: NSObject
  • A StackLayoutToolController presents a workspace view at the top and an accessory view at the bottom. The accessory view is usually used for the menu, while the workspace view hosts any other controls.

    See more

    Declaration

    Swift

    @objc(PESDKStackLayoutToolController) open class StackLayoutToolController: PhotoEditToolController
  • A SliderTooltip object is a visual element that displays a Slider’s current value above the thumb image while dragging.

    See more

    Declaration

    Swift

    open class SliderTooltip: UIView
  • A FrameImageView is currently just a dummy class. Its purpose is to find out if we are dealing with the frame view during serialization.

    Declaration

    Swift

    @objc(PESDKBrushImageView) open class BrushImageView: UIImageView
  • A _ObjCMenuItem wraps a MenuItem so that it can be used from Objective-C. Please see the documentation of MenuItem for more details.

    See more

    Declaration

    Swift

    @objc(PESDKMenuItem) public final class _ObjCMenuItem: NSObject
  • This class provides the methods to generate the dynamic frame-builders provided by the SDK.

    See more

    Declaration

    Swift

    @objc(PESDKDefaultDynamicFrames) open class DefaultDynamicFrames: NSObject
  • This class represents a circle gradient control view. It is used within the focus tool to visualize the chosen focus parameters.

    Declaration

    Swift

    @objc(PESDKCircleGradientView) open class CircleGradientView: FocusGradientView
  • A _ObjCPhotoEditModel holds information about any modification that should be applied to an image. The actual PhotoEditModel is a struct and not exposable to Objective-C. This class boxes the actual PhotoEditModel for Objective-C compatibility.

    See more

    Declaration

    Swift

    @objc(PESDKPhotoEditModel) public final class _ObjCPhotoEditModel: NSObject, PhotoEditModelProtocol
  • A Brush holds all information needed to render a stroke.

    Declaration

    Swift

    @objc(PESDKBrush) open class Brush: NSObject
  • A FreehandTool is responsible for creating vertices for a freehand drawing.

    See more

    Declaration

    Swift

    @objc(PESDKFreehandTool) open class FreehandTool: Tool
  • A FilterCollectionViewCell is a cell that shows an image (usually with a filter applied to it) and a label at the bottom. When selected the cell has an overlay, a label for the intensity and an selection indicator.

    See more

    Declaration

    Swift

    @objc(PESDKFilterCollectionViewCell) open class FilterCollectionViewCell: UICollectionViewCell
  • A Button is a subclass of UIButton, which supports running a closure for a given control event and has the ability to specify a touch area inset.

    See more

    Declaration

    Swift

    @objc(PESDKButton) open class Button: UIButton
  • A ProgressView is an activity indicator that is shown on top of all other views in a HUD style and temporarily blocks all user interaction with other views.

    See more

    Declaration

    Swift

    @objc(PESDKDefaultProgressView) open class DefaultProgressView: NSObject, ProgressView
  • An Overlay represents a unique overlay that can be added to a photo.

    See more

    Declaration

    Swift

    @objc(PESDKOverlay) open class Overlay: NSObject
  • A VideoRecordButton is a button that can be used to start a video recording. It animates between a ‘Start recording’ and a ‘Stop recording’ state.

    See more

    Declaration

    Swift

    public final class VideoRecordButton: UIControl
  • The CropAndStraightenView class provides support for displaying, zooming, rotating and cropping an image.

    See more

    Declaration

    Swift

    @objc(PESDKCropAndStraightenView) open class CropAndStraightenView: UIView
  • 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

    @objc(PESDKPhotoEditRenderer) open class PhotoEditRenderer: NSObject
  • A RoundGenerator generates a round stamp image with a given hardness.

    See more

    Declaration

    Swift

    @objc(PESDKRoundGenerator) open class RoundGenerator: StampGenerator
  • The ColorPickerView provides a way to pick colors. It contains three elements - a hue picker, a brightness and saturation picker and an alpha picker. It has full support for wide colors.

    See more

    Declaration

    Swift

    @objc(PESDKColorPickerView) open class ColorPickerView: UIControl
  • A TouchingGestureRecognizer is a simple UIGestureRecognizer subclass that counts the number of touches on the associated view.

    Declaration

    Swift

    @objc(PESDKTouchingGestureRecognizer) open class TouchingGestureRecognizer: UIGestureRecognizer
  • A TextLabel is used to show text that has been added to an image and provides improved support for accessibility.

    See more

    Declaration

    Swift

    @objc(PESDKTextLabel) open class TextLabel: UILabel
  • A StickerColorToolController is responsible for displaying the UI to adjust the color of a sticker that has been added to an image.

    Declaration

    Swift

    @objc(PESDKStickerColorToolController) open class StickerColorToolController: ColorToolController
  • The MasterLogger manages and deploys loggers. That means it holds all instances of loggers, and delegates incoming log messages to each of them. Also it takes case of threading, to keep logging efficient. More loggers can be added using the add method. All child loggers must implement the LoggerProtocol.

    See more

    Declaration

    Swift

    @objc(PESDKLogger) public class MasterLogger: NSObject
  • A TextColorToolController is reponsible for displaying the UI to adjust the text color of text that has been added to an image.

    See more

    Declaration

    Swift

    @objc(PESDKTextColorToolController) open class TextColorToolController: ColorToolController
  • Provides functions to import fonts added as resources. It also registers them, so that the application can load them like any other pre-installed font.

    See more

    Declaration

    Swift

    @objc(PESDKFontImporter) open class FontImporter: NSObject
  • A ModeSelectionView is a subclass of UICollectionView configured to be used as the menu of a tool controller.

    See more

    Declaration

    Swift

    open class ModeSelectionView: UIView
  • A sticker data source provides the stickers that should be displayed in the sticker tool.

    See more

    Declaration

    Swift

    @objc(PESDKStickerDataSource) open class StickerDataSource: NSObject
  • A LabelCaptionCollectionViewCell is a cell that displays two labels, one at the top and one at the bottom.

    See more

    Declaration

    Swift

    @objc(PESDKLabelCaptionCollectionViewCell) open class LabelCaptionCollectionViewCell: UICollectionViewCell
  • A ScalePicker provides an UI element to pick values.

    See more

    Declaration

    Swift

    @objc(PESDKScalePicker) open class ScalePicker: UIView
  • A StickerImageView displays an instance of Sticker and provides improved support for accessibility.

    See more

    Declaration

    Swift

    @objc(PESDKStickerImageView) open class StickerImageView: UIImageView
  • A PhotoEffectThumbnailRenderer can be used to generate thumbnails of a given input image for multiple photo effects.

    See more

    Declaration

    Swift

    @objc(PESDKPhotoEffectThumbnailRenderer) open class PhotoEffectThumbnailRenderer: NSObject
  • This class represents a rectangle gradient control view. It is used within the focus tool to visualize the chosen focus parameters.

    Declaration

    Swift

    @objc(PESDKBoxGradientView) open class BoxGradientView: FocusGradientView
  • A LicenseModel represents all properties of a license.

    See more

    Declaration

    Swift

    public class LicenseModel: NSObject
  • A Texture manages an OpenGL texture. It is responsible for allocating and deallocting the necessary memory.

    See more

    Declaration

    Swift

    @objc(PESDKTexture) open class Texture: NSObject
  • This class provides tools to create and manipulate color matrices. These can be passed into a CIKernel.

    See more

    Declaration

    Swift

    @objc(PESDKColorMatrix) public final class _ObjCColorMatrix: NSObject, ColorMatrixProtocol
  • The CameraController class provides functions for serveral camera related tasks, including setup, flash control, and such.

    See more

    Declaration

    Swift

    @objc(PESDKCameraController) open class CameraController: NSObject
  • An AdjustToolController is reponsible for displaying the UI to adjust the brightness, contrast and saturation of an image.

    Declaration

    Swift

    @objc(PESDKAdjustToolController) open class AdjustToolController: StackLayoutToolController
  • Applies clarity to an instance of CIImage.

    See more

    Declaration

    Swift

    @objc(PESDKLegacyClarityFilter) open class LegacyClarityFilter: CIFilter
  • A TooltipSlider object is a visual control used to select a single value from a continuous range of values. Sliders are always displayed as horizontal bars. An indicator, or thumb, notes the current value of the slider and can be moved by the user to change the setting. A vertical indicator, or neutral point, notes the default, unchanged value of the slider. Additionally a TooltipSlider also presents a tooltip above the thumb image that displays the current selected value while dragging.

    See more

    Declaration

    Swift

    open class TooltipSlider: Slider
  • A PhotoEditViewController is responsible for presenting and rendering an edited image.

    See more

    Declaration

    Swift

    @objc(PESDKPhotoEditViewController) open class PhotoEditViewController: UIViewController
  • This filter is used to colorize stickers.

    See more

    Declaration

    Swift

    @objc(PESDKColorizeFilter) open class ColorizeFilter: CIFilter
  • A ToolbarController is the container view controller for a PhotoEditViewController and its associated tool controllers. It usually displays a toolbar at bottom and has methods to transition between various tools. If it is embedded inside a UINavigationController it uses the navigation controllers navigation bar instead of its own toolbar at the bottom.

    See more

    Declaration

    Swift

    @objc(PESDKToolbarController) open class ToolbarController: UIViewController
  • A Frame represents a unique frame, which can have multiple images for different aspect ratios. The matching image for the current aspect ratio will be used automatically. Each frame neeeds at least one image and one thumbnail image. If no thumbnail is provide, it is automatically generated.

    See more

    Declaration

    Swift

    @objc(PESDKFrame) open class Frame: NSObject
  • A FilterToolController is reponsible for displaying the UI to apply an effect filter to an image.

    Declaration

    Swift

    @objc(PESDKFilterToolController) open class FilterToolController: StackLayoutToolController
  • A TextOptionsToolController is reponsible for displaying the UI to adjust text that has been added to an image.

    Declaration

    Swift

    @objc(PESDKTextOptionsToolController) open class TextOptionsToolController: StackLayoutToolController
  • An icon generator can be used to generate various icons.

    Declaration

    Swift

    @objc(PESDKIconGenerator) open class IconGenerator: NSObject
  • A ToolbarItem hosts views which are displayed in the toolbar of a ToolbarController. If the toolbar controller is embedded into an UINavigationController, those views are added to the navigation controller’s navigation bar.

    See more

    Declaration

    Swift

    @objc(PESDKToolbarItem) open class ToolbarItem: NSObject
  • A DefaultToolbarItem is a toolbar item with a label in the center and a default discard button on the left and apply button on the right. It is used in most tool controllers.

    See more

    Declaration

    Swift

    @objc(PESDKDefaultToolbarItem) open class DefaultToolbarItem: ToolbarItem
  • This filter adds or takes away clarity of an image.

    See more

    Declaration

    Swift

    @objc(PESDKLUTFilter) open class LUTFilter: CIFilter
  • A Painting manages the shaders, textures, vertices and framebuffers involved in a single painting.

    See more

    Declaration

    Swift

    @objc(PESDKPainting) open class Painting: NSObject
  • Used to determine device orientation even if orientation lock is active.

    See more

    Declaration

    Swift

    @objc(PESDKDeviceOrientationController) open class DeviceOrientationController: NSObject
  • A PhotoEditToolController is the base class for any tool controllers. Subclass this class if you want to add additional tools to the editor.

    See more

    Declaration

    Swift

    @objc(PESDKPhotoEditToolController) open class PhotoEditToolController: UIViewController, ToolbarItemProviding
  • A ToolbarButton should be used within an instance of Toolbar. It automatically styles itself to display touch events.

    Declaration

    Swift

    @objc(PESDKToolbarButton) open class ToolbarButton: Button
  • A view that extends the default UIView by passthrough views.

    See more

    Declaration

    Swift

    @objc(PESDKView) open class View: UIView
  • A FilterSelectionController contains everything that is needed to display a list of available filters.

    See more

    Declaration

    Swift

    @objc(PESDKFilterSelectionController) open class FilterSelectionController: NSObject
  • An IconCaptionCollectionViewCell is a cell that shows an icon and a label.

    See more

    Declaration

    Swift

    @objc(PESDKIconCaptionCollectionViewCell) open class IconCaptionCollectionViewCell: UICollectionViewCell
  • A MenuCollectionView is a subclass of UICollectionView configured to be used as the menu of a tool controller.

    See more

    Declaration

    Swift

    @objc(PESDKMenuCollectionView) open class MenuCollectionView: UICollectionView
  • A Tool is an abstract base class. Currently FreehandTool is the only concrete subclass and it is used to handle touch events and draw primitives.

    See more

    Declaration

    Swift

    @objc(PESDKTool) open class Tool: NSObject
  • A ColorToolController is reponsible for displaying the UI to adjust the color of an element that has been added to an image.

    Declaration

    Swift

    @objc(PESDKColorToolController) open class ColorToolController: StackLayoutToolController
  • A StickerCategory represents one category of stickers. Each category has a preview image and multiple stickers associated with it. To support accessibility you should also set its accessibilityLabel.

    See more

    Declaration

    Swift

    @objc(PESDKStickerCategory) open class StickerCategory: NSObject
  • UndoController is a general-purpose recorder of operations for undo and redo.

    Note

    You register an undo operation by specifying the object that’s changing (or the owner of that object), along with a method to invoke to revert its state, and the arguments for that method. When performing undo an UndoController saves the operations reverted so that you can redo the undos. It differs from Foundation’s NSUndoManager in that groups are not created automatically for each cycle of the run loop and that each step of a group can be undone rather than just the whole group.
    See more

    Declaration

    Swift

    @objc(PESDKUndoController) open class UndoController: NSObject
  • A Sticker represents a single sticker in a sticker category. Each sticker needs an image and a thumbnail image. If no thumbnail is provided, it is automatically generated.

    See more

    Declaration

    Swift

    @objc(PESDKSticker) open class Sticker: NSObject
  • The CropOverlayView is added above the CropAndStraightenView to display the UI elements to adjust the crop rect and hosts the mask views to dim the content that is outside the crop rect.

    See more

    Declaration

    Swift

    @objc(PESDKCropOverlayView) open class CropOverlayView: UIView
  • This class provides our own implementation of adjustment filters. Using these we get more consistant results across the several platforms.

    See more

    Declaration

    Swift

    @objc(PESDKCustomAdjustmentsFilter) open class CustomAdjustmentsFilter: CIFilter
  • A StickerCollectionViewCell is a cell that has an image view and an activity indicator in its center.

    See more

    Declaration

    Swift

    @objc(PESDKIconCollectionViewCell) open class StickerCollectionViewCell: UICollectionViewCell
  • A Slider object is a visual control used to select a single value from a continuous range of values. Sliders are always displayed as horizontal bars. An indicator, or thumb, notes the current value of the slider and can be moved by the user to change the setting. A vertical indicator, or neutral point, notes the default, unchanged value of the slider.

    See more

    Declaration

    Swift

    @objc(PESDKSlider) open class Slider: UIControl
  • A BorderedCollectionViewCell is a cell that shows a border around the cell.

    See more

    Declaration

    Swift

    @objc(PESDKBorderedCollectionViewCell) open class BorderedCollectionViewCell: UICollectionViewCell
  • The FontSelectorView is a subclass of UIScrollView that presents a scrollable list of fonts.

    See more

    Declaration

    Swift

    @objc(PESDKFontSelectorView) open class FontSelectorView: UIScrollView
  • 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

    @objc(PESDKConfiguration) open class Configuration: NSObject
  • The configuration builder object offers all properties of Configuration in a mutable version, in order to build an immutable Configuration object. To further configure the different viewcontrollers, use the configureXYZViewController methods to edit the given options.

    See more

    Declaration

    Swift

    @objc(PESDKConfigurationBuilder) open class ConfigurationBuilder: NSObject
  • A frame data source provides the frames that should be displayed in the frame tool.

    See more

    Declaration

    Swift

    @objc(PESDKFrameDataSource) open class FrameDataSource: NSObject
  • A Font represents meta information about a font, that should be loaded into the SDK. If a font has a long name, the displayName can be used to substitude it within the UI. The font name is used by iOS to identify the font. This is usualy the filename of the font. But it can be different. To be sure use the font in a sandbox project, and get its ‘fontName’ attribute.

    See more

    Declaration

    Swift

    @objc(PESDKFont) open class Font: NSObject
  • A OverlayelectionController contains everything that is needed to display a list of available filters.

    See more

    Declaration

    Swift

    @objc(PESDKOverlaySelectionController) open class OverlaySelectionController: NSObject
  • A FrameImageView is currently just a dummy class. Its purpose is to find out if we are dealing with the frame view during serialization.

    See more

    Declaration

    Swift

    @objc(PESDKFrameImageView) open class FrameImageView: UIImageView
  • This class is out to provide an easy service to get images, either from a local or remote source.

    See more

    Declaration

    Swift

    @objc(PESDKImageProvider) open class ImageProvider: NSObject