AlertState_Button - mbrandonw/swift-composable-architecture GitHub Wiki
AlertState.Button
public struct Button
Properties
action
var action: Action?
type
var type: `Type`
Methods
cancel(_:send:)
public static func cancel(_ label: String, send action: Action? = nil) -> Self
cancel(send:)
public static func cancel(send action: Action? = nil) -> Self
`default`(_:send:)
public static func `default`(_ label: String, send action: Action? = nil) -> Self
destructive(_:send:)
public static func destructive(_ label: String, send action: Action? = nil) -> Self
toSwiftUI(send:)
func toSwiftUI(send: @escaping (Action) -> Void) -> SwiftUI.Alert.Button