init(title:secondaryButton:secondaryButtonBehavior:)
Creates an alert for an alarm, with a system-provided stop control and optionally a second button.
Declaration
init(title: LocalizedStringResource, secondaryButton: AlarmButton? = nil, secondaryButtonBehavior: AlarmPresentation.Alert.SecondaryButtonBehavior? = nil)Parameters
- title:
The title of the alert.
- secondaryButton:
The customizable second button for an alarm.
- secondaryButtonBehavior:
The defined behavior of the secondary button.