Contents

AlarmPresentation.Paused

An object that configures the UI for a paused timer state.

Declaration

struct Paused

Overview

This is only applicable to timers that can be paused. To get back to a countdown state, you must provide a definition for a resume button. The following code snippet describes how to schedule a timer that can pause and resume.

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

Topics

Creating a resume button

See Also

Describing an alarm state