UIContextualAction

extension UIContextualAction
  • Convenience constructor.

    Declaration

    Swift

    public convenience init(icon: Icon, color: UIColor, handler: @escaping Handler)

    Parameters

    icon

    the icon of the action

    color

    the background color of the action

    handler

    the closure to invoke when the action fires