Button

public struct Button
extension AlertState.Button: Equatable where Action: Equatable
extension AlertState.Button: Hashable where Action: Hashable

Undocumented

  • Undocumented

    Declaration

    Swift

    public var action: Action?
  • Undocumented

    Declaration

    Swift

    public var type: Type
  • Undocumented

    Declaration

    Swift

    public static func cancel(
      _ label: String,
      send action: Action? = nil
    ) -> Self
  • Undocumented

    Declaration

    Swift

    public static func cancel(
      send action: Action? = nil
    ) -> Self
  • Undocumented

    Declaration

    Swift

    public static func `default`(
      _ label: String,
      send action: Action? = nil
    ) -> Self
  • Undocumented

    Declaration

    Swift

    public static func destructive(
      _ label: String,
      send action: Action? = nil
    ) -> Self
  • Undocumented

    See more

    Declaration

    Swift

    public enum AlertState<Action>.Button.`Type` : Hashable