Configuration
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKConfiguration)
open class Configuration : NSObject
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
.
-
The background color. Defaults to black.
Declaration
Swift
public let backgroundColor: UIColor
-
The background color of the menu. Defaults to gray.
Declaration
Swift
public let menuBackgroundColor: UIColor
-
Options for the
CameraViewController
.Declaration
Swift
public let cameraViewControllerOptions: CameraViewControllerOptions
-
Options for the
PhotoEditViewController
.Declaration
Swift
public let photoEditViewControllerOptions: PhotoEditViewControllerOptions
-
Options for the
FilterToolController
.Declaration
Swift
public let filterToolControllerOptions: FilterToolControllerOptions
-
Options for the
OverlayToolController
.Declaration
Swift
public let overlayToolControllerOptions: OverlayToolControllerOptions
-
Options for the
StickerToolController
.Declaration
Swift
public let stickerToolControllerOptions: StickerToolControllerOptions
-
Options for the
StickerOptionsToolController
.Declaration
Swift
public let stickerOptionsToolControllerOptions: StickerOptionsToolControllerOptions
-
Options for the
StickerColorToolController
.Declaration
Swift
public let stickerColorToolControllerOptions: ColorToolControllerOptions
-
Options for the
TransformToolController
.Declaration
Swift
public let transformToolControllerOptions: TransformToolControllerOptions
-
Options for the
FocusToolController
.Declaration
Swift
public let focusToolControllerOptions: FocusToolControllerOptions
-
Options for the
TextToolController
.Declaration
Swift
public let textToolControllerOptions: TextToolControllerOptions
-
Options for the
TextOptionsToolController
.Declaration
Swift
public let textOptionsToolControllerOptions: TextOptionsToolControllerOptions
-
Options for the
TextFontToolController
.Declaration
Swift
public let textFontToolControllerOptions: TextFontToolControllerOptions
-
Options for the
TextColorToolController
.Declaration
Swift
public let textColorToolControllerOptions: TextColorToolControllerOptions
-
Options for the
AdjustToolController
.Declaration
Swift
public let adjustToolControllerOptions: AdjustToolControllerOptions
-
Options for the
BrushToolController
.Declaration
Swift
public let brushToolControllerOptions: BrushToolControllerOptions
-
Options for the
BrushColorToolController
.Declaration
Swift
public let brushColorToolControllerOptions: BrushColorToolControllerOptions
-
Options for the
FrameToolController
.Declaration
Swift
public let frameToolControllerOptions: FrameToolControllerOptions
-
Options for the
FrameOptionsToolController
.Declaration
Swift
public let frameOptionsToolControllerOptions: FrameOptionsToolControllerOptions
-
Options for the
TextDesignToolController
.Declaration
Swift
public let textDesignToolControllerOptions: TextDesignToolControllerOptions
-
Options for the
TextDesignOptionsToolController
.Declaration
Swift
public let textDesignOptionsToolControllerOptions: TextDesignOptionsToolControllerOptions
-
Creates a newly allocated instance of
Configuration
using the given builder.Declaration
Swift
public init(builder: ((ConfigurationBuilder) -> Void))
Parameters
builder
An instance of
ConfigurationBuilder
.