TextOptionsToolControllerOptions
@available(iOS 9.0, *)
@objcMembers
@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
public let allowedTextActions: [TextAction]
-
Defines all allowed overlay actions. Only buttons for allowed action are visible. Defaults to show all available actions.
Declaration
Swift
public 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
public let actionButtonConfigurationClosure: ((MenuCollectionViewCell, 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
public let overlayButtonConfigurationClosure: ((OverlayButton, TextOverlayAction) -> Void)?
-
This closure is called when the user selects an action.
Declaration
Swift
public let textActionSelectedClosure: ((TextAction) -> Void)?
-
This closure is called when the user selects an overlay action.
Declaration
Swift
public let overlayActionSelectedClosure: ((TextOverlayAction) -> 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
TextOptionsToolConrollerOptions
using the given builder.Declaration
Swift
public init(builder: TextOptionsToolControllerOptionsBuilder)
Parameters
builder
A
TextOptionsToolControllerOptionsBuilder
object.