AlertAction

public struct AlertAction

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias Enabler = (_ texts: [String]) -> Bool
  • Undocumented

    Declaration

    Swift

    public typealias Handler = (_ texts: [String]) -> Void
  • Undocumented

    Declaration

    Swift

    public let title: String
  • Undocumented

    Declaration

    Swift

    public let style: UIAlertAction.Style
  • Undocumented

    Declaration

    Swift

    public let enabler: Enabler?
  • Undocumented

    Declaration

    Swift

    public let handler: Handler?
  • Undocumented

    Declaration

    Swift

    public init(
        title: String,
        style: UIAlertAction.Style = .default,
        enabler: Enabler? = nil,
        handler: Handler? = nil
    )
  • Undocumented

    Declaration

    Swift

    public init(
        title: String,
        style: UIAlertAction.Style = .default,
        enabler: Enabler? = nil,
        handler: (() -> Void)?
    )
  • Undocumented

    Declaration

    Swift

    public static func cancel(title: String) -> AlertAction