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.

  • 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.