TextFontToolControllerOptions
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKTextFontToolControllerOptions)
open class TextFontToolControllerOptions : ToolControllerOptions
Options for configuring a TextFontToolController
.
-
This closure allows further configuration of the action buttons. The closure is called for each action button and has the button and its corresponding action as parameters.
Declaration
Swift
public let actionButtonConfigurationClosure: ((MenuCollectionViewCell, Font) -> Void)?
-
This closure is called every time the user selects a crop ratio.
Declaration
Swift
public let textFontActionSelectedClosure: ((String) -> Void)?
-
This closure allows further configuration of the font selector view, i.e. the view that can be expanded from the bottom to display a more detailed view of the fonts.
Declaration
Swift
public let fontSelectorViewConfigurationClosure: ((FontSelectorView) -> Void)?
-
This closure allows further configuration of the handle button, i.e. the view that is used to expand the font selector view.
Declaration
Swift
public let handleButtonConfigurationClosure: ((HandleButton) -> Void)?
-
Creates a new instance of
TextFontToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: TextFontToolControllerOptionsBuilder)
Parameters
builder
A
TextFontToolControllerOptionsBuilder
object.