BrushToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objc(PESDKBrushToolControllerOptionsBuilder)
open class BrushToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default BrushToolControllerOptionsBuilder
for BrushToolControllerOptions
.
-
Defines all allowed tools. The brush tool buttons are always shown in the given order. Defaults to show all available brush tools. To set this property from Obj-C, see the
allowedBrushToolsAsNSNumbers
property.Declaration
Swift
open var allowedBrushTools: [BrushTool]
-
This closure allows further configuration of the brush tool buttons. The closure is called for each brush tool button and has the button and its corresponding brush tool as parameters.
Declaration
Swift
open var brushToolButtonConfigurationClosure: ((UICollectionViewCell, BrushTool) -> Void)?
-
This closure is called every time the user selects a tool.
Declaration
Swift
open var brushToolSelectedClosure: ((BrushTool) -> Void)?
-
This closure can be used to configure the slider that is visible when selecting a brush 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 a brush tool.
Declaration
Swift
open var sliderContainerConfigurationClosure: ViewConfigurationClosure?
-
This closure allows further configuration of the overlay buttons. The closure is called for each button and has the button and its corresponding enum value as parameters.
Declaration
Swift
open var overlayButtonConfigurationClosure: ((OverlayButton, BrushOverlayAction) -> Void)?
-
Defines all allowed actions. Only buttons for allowed actions are visible. Defaults to show all available actions. To set this property from Obj-C, see the
allowedBrushContextActionsAsNSNumbers
property.Declaration
Swift
open var allowedBrushOverlayActions: [BrushOverlayAction]
-
This closure is called when the user selects an action.
Declaration
Swift
open var brushActionSelectedClosure: ((BrushOverlayAction) -> Void)?
-
The minimum size that a brush can have in pixels.
Declaration
Swift
open var minimumBrushSize: CGFloat
-
The maximum size that a brush can have in pixels.
Declaration
Swift
open var maximumBrushSize: CGFloat
-
The default size that a brush has in pixels
Declaration
Swift
open var defaultBrushSize: CGFloat
-
The minimum hardness factor a brush can have.
Declaration
Swift
open var minimumBrushHardness: CGFloat
-
The maximum hardness factor a brush can have.
Declaration
Swift
open var maximumBrushHardness: CGFloat
-
The default hardness factor a brush has.
Declaration
Swift
open var defaultBrushHardness: CGFloat
-
The default color a brush has.
Declaration
Swift
open var defaultBrushColor: UIColor
-
false
if the hardness of the brush should vary by the size of the brush,true
otherwise. Default isfalse
.Declaration
Swift
open var usesUniformHardness: Bool
-
An array of
BrushTool
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedBrushTools
with the correspondingBrushTool
values.Declaration
Swift
open var allowedBrushToolsAsNSNumbers: [NSNumber] { get set }
-
An array of
BrushOverlayAction
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedBrushOverlayActions
with the correspondingBrushOverlayAction
values.Declaration
Swift
open var allowedBrushOverlayActionsAsNSNumbers: [NSNumber] { get set }