ConfigurationBuilder
@objc(PESDKConfigurationBuilder) open class ConfigurationBuilder: 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.
-
The background color. Defaults to black.
Declaration
Swift
open var backgroundColor: UIColor = UIColor.black
-
The background color of the accessory view. Defaults to gray.
Declaration
Swift
open var accessoryViewBackgroundColor: UIColor = UIColor(red: 0.11, green: 0.11, blue: 0.11, alpha: 1)
-
The color of the separator that is drawn to separate different menu items
Declaration
Swift
open var separatorColor: UIColor = UIColor(red: 0.27, green: 0.27, blue: 0.27, alpha: 1)
-
Options for the
CameraViewController
.Declaration
Swift
open func configureCameraViewController(_ builder: ((CameraViewControllerOptionsBuilder) -> Void))
-
Options for the
PhotoEditorViewController
.Declaration
Swift
open func configurePhotoEditorViewController(_ builder: ((PhotoEditViewControllerOptionsBuilder) -> Void))
-
Options for the
FilterToolController
.Declaration
Swift
open func configureFilterToolController(_ builder: ((FilterToolControllerOptionsBuilder) -> Void))
-
Options for the
OverlayToolController
.Declaration
Swift
open func configureOverlayToolController(_ builder: ((OverlayToolControllerOptionsBuilder) -> Void))
-
Options for the
StickerToolController
.Declaration
Swift
open func configureStickerToolController(_ builder: ((StickerToolControllerOptionsBuilder) -> Void))
-
Options for the
StickerOptionsToolController
.Declaration
Swift
open func configureStickerOptionsToolController(_ builder: ((StickerOptionsToolControllerOptionsBuilder) -> Void))
-
Options for the
StickerColorToolController
.Declaration
Swift
open func configureStickerColorToolController(_ builder: ((ColorToolControllerOptionsBuilder) -> Void))
-
Options for the
FocusToolController
.Declaration
Swift
open func configureFocusToolController(_ builder: ((FocusToolControllerOptionsBuilder) -> Void))
-
Options for the
TransformToolController
.Declaration
Swift
open func transformToolControllerOptions(_ builder: ((TransformToolControllerOptionsBuilder) -> Void))
-
Options for the
TextToolController
.Declaration
Swift
open func configureTextToolController(_ builder: ((TextToolControllerOptionsBuilder) -> Void))
-
Options for the
TextOptionsToolController
.Declaration
Swift
open func configureTextOptionsToolController(_ builder: ((TextOptionsToolControllerOptionsBuilder) -> Void))
-
Options for the
TextFontToolController
.Declaration
Swift
open func configureTextFontToolController(_ builder: ((TextFontToolControllerOptionsBuilder) -> Void))
-
Options for the
TextColorToolController
.Declaration
Swift
open func configureTextColorToolController(_ builder: ((TextColorToolControllerOptionsBuilder) -> Void))
-
Options for the
AdjustToolController
.Declaration
Swift
open func configureAdjustToolController(_ builder: ((AdjustToolControllerOptionsBuilder) -> Void))
-
Options for the
BrushToolController
.Declaration
Swift
open func configureBrushToolController(_ builder: ((BrushToolControllerOptionsBuilder) -> Void))
-
Options for the
BrushToolController
.Declaration
Swift
open func configureBrushColorToolController(_ builder: ((ColorToolControllerOptionsBuilder) -> Void))
-
Options for the
TransformToolController
.Declaration
Swift
open func configureTransformToolController(_ builder: ((TransformToolControllerOptionsBuilder) -> Void))
-
Options for the
FrameToolController
.Declaration
Swift
open func configureFrameToolController(_ builder: ((FrameToolControllerOptionsBuilder) -> Void))
-
Use this to use a specific subclass instead of the default PhotoEditorSDK view controller classes. This works across all the whole framework and allows you to subclass all usages of a class. As of now, only view controller can be replaced!
Throws
An exception if the replacing class is not a subclass of the replaced class.Declaration
Swift
open func replaceClass(_ builtinClass: NSObject.Type, replacingClass: NSObject.Type, moduleName: String) throws
Parameters
builtinClass
The built in class, that should be replaced.
replacingClass
The class that replaces the builtin class.
moduleName
The module name of the replacing class (e.g. Your_App). Usually the module name of your app can be found under ‘Product Module Name’ in your app targets build settings.