TextDesignOptionsToolControllerOptions
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKTextDesignOptionsToolControllerOptions)
open class TextDesignOptionsToolControllerOptions : ToolControllerOptions
Options for configuring a TextDesignOptionsToolController
.
-
Defines all allowed overlay actions. Only buttons for allowed action are visible. Defaults to show all available actions.
Declaration
Swift
public let allowedTextDesignOverlayActions: [TextDesignOverlayAction]
-
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, TextDesign) -> Void)?
-
This closure allows further configuration of the overlay actions. The closure is called for each overlay and has the overlay and its corresponding enum value as parameters.
Declaration
Swift
public let overlayButtonConfigurationClosure: ((OverlayButton, TextDesignOverlayAction) -> Void)?
-
This closure is called when the user selects an action.
Declaration
Swift
public let textDesignActionSelectedClosure: ((TextDesign) -> Void)?
-
This closure is called when the user selects an overlay action.
Declaration
Swift
public let overlayActionSelectedClosure: ((TextDesignOverlayAction) -> Void)?
-
The insets used to layout the overlay buttons in their container. The
.top
value is ignored.Declaration
Swift
public let overlayButtonInsets: UIEdgeInsets
-
Creates a new instance of
TextDesignOptionsToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: TextDesignOptionsToolControllerOptionsBuilder)
Parameters
builder