Contents

AlarmPresentation.Countdown

An object that describes the content required for the countdown UI.

Declaration

struct Countdown

Overview

The code snippet below describes how to configure a countdown UI with a pause and resume button.

let countdown = AlarmPresentation.Countdown(title: "Eggs are cooking")
let paused = AlarmPresentation.Paused(
    title: "Timer paused",
    resumeButton: AlarmButton(text: "Resume", textColor: .blue, systemImageName: "play.circle"))

Topics

Creates a pause button

See Also

Describing an alarm state