TextOptionsToolControllerOptions
@objc(IMGLTextOptionsToolControllerOptions) open class TextOptionsToolControllerOptions: ToolControllerOptions
Options for configuring a TextOptionsToolController
.
-
Defines all allowed actions. Only buttons for allowed action are visible. Defaults to show all available actions.
Declaration
Swift
open let allowedTextActions: [TextAction]
-
Defines all allowed overlay actions. Only buttons for allowed action are visible. Defaults to show all available actions.
Declaration
Swift
open let allowedTextOverlayActions: [TextOverlayAction]
-
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 let actionButtonConfigurationClosure: ((UICollectionViewCell, TextAction) -> 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 let overlayButtonConfigurationClosure: ((OverlayButton, TextOverlayAction) -> Void)?
-
This closure allows further configuration of the right dragging handle which can be used to resize the right side of the text’s bounding box.
Declaration
Swift
open let rightDraggingHandleConfigurationClosure: ((UIImageView) -> Void)?
-
This closure allows further configuration of the left dragging handle which can be used to resize the left side of the text’s bounding box.
Declaration
Swift
open let leftDraggingHandleConfigurationClosure: ((UIImageView) -> Void)?
-
This closure is called when the user selects an action.
Declaration
Swift
open let textActionSelectedClosure: ((TextAction) -> Void)?
-
This closure is called when the user selects an overlay action.
Declaration
Swift
open let overlayActionSelectedClosure: ((TextOverlayAction) -> Void)?
-
Returns a newly allocated instance of
TextOptionsToolControllerOptions
using the default builder.Declaration
Swift
public convenience init()
Return Value
An instance of
TextOptionsToolControllerOptions
. -
Returns a newly allocated instance of
TextOptionsToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: TextOptionsToolControllerOptionsBuilder)
Parameters
builder
A
TextOptionsToolControllerOptionsBuilder
instance.Return Value
An instance of
TextOptionsToolControllerOptions
.