Contents

AlarmButton

A struct that defines the appearance of buttons.

Declaration

struct AlarmButton

Overview

The following example uses AlarmButton to define the appearance of the alarm.

let alert = AlarmPresentation.Alert(
    title: "Eggs are ready!",
    secondaryButton: AlarmButton(text: "Repeat", textColor: .blue, systemImageName: "repeat"),
    secondaryButtonBehavior: .countdown)

Topics

Creating a button

Encoding and decoding