AlarmPresentation.Alert
An object that describes the UI of the alert that appears when an alarm fires.
Declaration
struct AlertOverview
Alert configures the title and buttons in the alarm UI. The system provides a stop button automatically. Use this object to optionally define a secondary button and its behavior. The code snippet below describes how to configure an Alert with a secondary button.
let alert = AlarmPresentation.Alert(title: "Eggs are ready!",
secondaryButton: AlarmButton(text: "Repeat", textColor: .blue, systemImageName: "repeat"),
secondaryButtonBehavior: .countdown)