FrameOptionsToolControllerOptions
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKFrameOptionsToolControllerOptions)
open class FrameOptionsToolControllerOptions : ToolControllerOptions
Options for configuring a FrameOptionsToolController
.
-
The list of allowed frame actions within the tool.
Declaration
Swift
public let allowedFrameActions: [FrameAction]
-
This closure allows further customization of the cells of a frame action.
Declaration
Swift
public let cellConfigurationClosure: ((MenuCollectionViewCell, FrameAction?) -> Void)?
-
This closure is called every time the user selects a tool.
Declaration
Swift
public let frameActionSelectedClosure: ((FrameAction) -> Void)?
-
This closure can be used to configure the slider that is visible when selecting a brush tool.
Declaration
Swift
public let 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
public let 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
public let sliderChangedValueClosure: ((Slider, FrameAction) -> Void)?
-
Whether rotation using a rotation gesture should be enabled.
false
by default.Declaration
Swift
public let rotationEnabled: Bool
-
Creates a newly allocated instance of
FrameToolControllerOptions
using the default builder.Declaration
Swift
public convenience init()
-
Creates a newly allocated instance of
FrameOptionsToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: FrameOptionsToolControllerOptionsBuilder)
Parameters
builder
A
FrameOptionsToolControllerOptionsBuilder
instance.