AdjustEditController

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKAdjustEditController)
open class AdjustEditController : ViewController
extension AdjustEditController: SliderEditControllerDelegate
extension AdjustEditController: PhotoEditModelSettable
extension AdjustEditController: PhotoPreviewControlling

An AdjustEditController can be used to update the AdjustmentModel of a PhotoEditModel. It is supposed to be contained in a tool controller and be presented above a PhotoEditPreviewController.

Properties

Initializers

Tools

  • Updates the adjust tool that this controller currently handles.

    Declaration

    Swift

    open func setAdjustTool(_ adjustTool: AdjustTool?, animated: Bool)

    Parameters

    adjustTool

    The adjust tool to update.

    animated

    Whether to animate this change or not.

  • Updates the slider properties for the selected adjustment tool. The slider can be accessed with sliderEditController.slider.

    Declaration

    Swift

    open func updateSlider(for adjustTool: AdjustTool)

    Parameters

    adjustTool

    The selected adjustment tool.

  • This is a boxed property which exposes a Swift struct to Objective-C. This property should only be used if you are using Objective-C.

    Every invocation of the getter will return a new (temporary) object wrapping the underlying Swift struct. Boxed properties cannot be chained with the dot syntax for mutable access of nested properties in place. Use the setter with the assignment operator instead to modify boxed properties, e.g.:

    PESDKPhotoEditModel *photoEditModel = [[PESDKPhotoEditModel alloc] init];
    
    // CORRECT:
    // get boxed `AdjustmentModel`
    PESDKAdjustmentModel *adjustmentModel = photoEditModel.adjustmentModel;
    // modify boxed `AdjustmentModel`
    adjustmentModel.brightness = 0.5;
    // set modified boxed `AdjustmentModel`
    photoEditModel.adjustmentModel = adjustmentModel;
    
    // WRONG:
    photoEditModel.adjustmentModel.brightness = 0.5;
    

    Declaration

    Swift

    var boxedPhotoEditModel: _ObjCPhotoEditModel { get set }