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>
-
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 }
-
Creates a new
BrushEditController
with the givenSliderEditController
.Declaration
Swift
public init(sliderEditController: SliderEditController<TooltipSlider>)
Parameters
sliderEditController
The slider edit controller to contain in this edit controller.