FrameOptionsToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKFrameOptionsToolControllerOptionsBuilder)
open class FrameOptionsToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default FrameOptionsToolControllerOptionsBuilder
for FrameOptionsToolControllerOptions
.
-
The list of allowed frame actions within the tool.
Declaration
Swift
open var allowedFrameActions: [FrameAction]
-
This closure allows further customization of the cells of a frame action.
Declaration
Swift
open var cellConfigurationClosure: ((MenuCollectionViewCell, FrameAction?) -> Void)?
-
This closure is called every time the user selects a tool.
Declaration
Swift
open var frameActionSelectedClosure: ((FrameAction) -> 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 will be called whenever the value of the slider changes. The
Slider
and the activeFrameAction
will be passed as parameters.Declaration
Swift
open var sliderChangedValueClosure: ((Slider, FrameAction) -> Void)?
-
Whether rotation using a rotation gesture should be enabled.
false
by default.Declaration
Swift
open var rotationEnabled: Bool
-
Creates a new instance of
FrameOptionsToolControllerOptionsBuilder
initialized with the given options.Declaration
Swift
public init(options: FrameOptionsToolControllerOptions)
Parameters
options
A
FrameOptionsToolControllerOptions
instance. -
An array of
FrameAction
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedFrameActions
with the correspondingFrameAction
values.Declaration
Swift
@objc(allowedFrameActions) open var _objCAllowedFrameActions: [NSNumber] { get set }