AlertMessage
struct AlertMessage
The structure for an Alert Message
-
The
ErrorDeclaration
Swift
let error: Error -
The role of the button
Declaration
Swift
let role: ButtonRole? -
The action for the button
Declaration
Swift
var action: (() -> Void)? -
The command to open the
DebugViewin a windowDeclaration
Swift
var debugCommand: (() -> Void)? -
Wrap an
Errorinto aLocalizedErrorThis to avoid an error: Protocol ‘LocalizedError’ as a type cannot conform to the protocol itself
See moreDeclaration
Swift
struct LocalizedAlertError: LocalizedError -
Declaration
Swift
struct LocalizedAlertCustomError: LocalizedError -
SwiftUI
See moreViewwith the confirmation buttonDeclaration
Swift
struct ConfirmButton: View
View on GitHub