BrushEditController

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKBrushEditController)
open class BrushEditController : ViewController

A BrushEditController contains a SliderEditController and can be used to draw in a CanvasView.

  • The slider edit controller that belongs to this tool controller.

    Declaration

    Swift

    public let sliderEditController: SliderEditController<TooltipSlider>
  • This closure will be called whenever the value of the slider changes. The Slider and the active BrushTool will be passed as parameters.

    Declaration

    Swift

    open var sliderChangedValueClosure: ((Slider, BrushTool) -> Void)?
  • The object that acts as a delegate.

    Declaration

    Swift

    open weak var delegate: BrushEditControllerDelegate?
  • The photo edit model that belongs to this controller.

    Declaration

    Swift

    open var photoEditModel: PhotoEditModel { get set }
  • The brush preview view that previews the brush when changing any properties of it.

    Declaration

    Swift

    open private(set) lazy var brushPreviewView: BrushPreviewView { get set }
  • The currently active brush tool.

    Declaration

    Swift

    open var activeBrushTool: BrushTool? { get set }
  • The color of the brush.

    Declaration

    Swift

    open var color: UIColor { get set }
  • The size of the brush.

    Declaration

    Swift

    open var size: CGFloat { get set }
  • The hardness of the brush.

    Declaration

    Swift

    open var hardness: CGFloat { get set }