ColorToolControllerOptions

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKColorToolControllerOptions)
open class ColorToolControllerOptions : ToolControllerOptions

Options for configuring a ColorToolController.

  • An array of colors to present in the color tool.

    Declaration

    Swift

    public let availableColors: [Color]
  • This closure allows further configuration of the action buttons. The closure is called for each action button and has the button and its corresponding color and color name as parameters.

    Declaration

    Swift

    public let colorActionButtonConfigurationClosure: ((ColorCollectionViewCell, UIColor, String) -> Void)?
  • This closure is called every time the user selects an action

    Declaration

    Swift

    public let colorActionSelectedClosure: ((UIColor, String) -> Void)?
  • Creates a newly allocated instance of ColorToolControllerOptions using the default builder.

    Declaration

    Swift

    public convenience init()
  • Creates a newly allocated instance of ColorToolControllerOptions using the given builder.

    Declaration

    Swift

    public init(builder: ColorToolControllerOptionsBuilder)

    Parameters

    builder

    A ColorToolControllerOptions instance.