AdjustToolControllerOptionsBuilder

@objc(IMGLYAdjustToolControllerOptionsBuilder) open class AdjustToolControllerOptionsBuilder: ToolControllerOptionsBuilder

The default AdjustToolControllerOptionsBuilder for AdjustToolControllerOptions.

  • Defines all allowed tools. The adjust tool buttons are always shown in the given order. Defaults to show all available adjust tools. To set this property from Obj-C, see the allowedAdjustToolsAsNSNumbers property.

    Declaration

    Swift

    open var allowedAdjustTools: [AdjustTool] = [ .brightness, .contrast, .saturation, .clarity, .shadows, .highlights, .exposure ]
  • This closure allows further configuration of the adjust tool buttons. The closure is called for each adjust tool button and has the button and its corresponding adjust tool as parameters.

    Declaration

    Swift

    open var adjustToolButtonConfigurationClosure: ((IconCaptionCollectionViewCell, AdjustTool) -> Void)?
  • This closure is called every time the user selects a tool.

    Declaration

    Swift

    open var adjustToolSelectedClosure: ((AdjustTool) -> Void)?
  • This closure can be used to configure the slider that is visible when selecting an adjust tool.

    Declaration

    Swift

    open var sliderConfigurationClosure: ((Slider) -> Void)?
  • This closure can be used to configure the view that contains the slider and that is visible when selecting an adjust tool.

    Declaration

    Swift

    open var sliderContainerConfigurationClosure: ViewConfigurationClosure?
  • This closure will be called whenever the value of the slider changes. The Slider and the active AdjustTool will be passed as parameters.

    Declaration

    Swift

    open var sliderChangedValueClosure: ((Slider, AdjustTool) -> Void)?