TextDesignOptionsToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKTextDesignOptionsToolControllerOptionsBuilder)
open class TextDesignOptionsToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default TextDesignOptionsToolControllerOptionsBuilder
for TextDesignOptionsToolControllerOptions
.
-
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
open var 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
open var overlayButtonConfigurationClosure: ((OverlayButton, TextDesignOverlayAction) -> Void)?
-
This closure is called when the user selects an action.
Declaration
Swift
open var textDesignActionSelectedClosure: ((TextDesign) -> Void)?
-
This closure is called when the user selects an overlay action.
Declaration
Swift
open var overlayActionSelectedClosure: ((TextDesignOverlayAction) -> Void)?
-
Defines all allowed overlay actions. Only buttons for allowed action are visible.
Declaration
Swift
open var allowedTextDesignOverlayActions: [TextDesignOverlayAction]
-
The insets used to layout the overlay buttons in their container. The
.top
value is ignored.Declaration
Swift
open var overlayButtonInsets: UIEdgeInsets
-
An array of
TextDesignOverlayAction
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedTextDesignOverlayActions
with the correspondingTextDesignOverlayAction
values.Declaration
Swift
@objc(allowedTextDesignOverlayActions) open var _objCAllowedTextDesignOverlayActions: [NSNumber] { get set }