One Logo Pool Ball
AlarmKit · IOS API REFERENCE

AlarmPresentation.Countdown

struct · iOS 26.0+ · SDK 27.1

struct Countdown

An object that describes the content required for the countdown UI. The code snippet below describes how to configure a countdown UI with a pause and resume button. ```swift let countdown = AlarmPresentation.Countdown(title: "Eggs are cooking") let paused = AlarmPresentation.Paused( title: "Timer paused", resumeButton: AlarmButton(text: "Resume", textColor: .blue, systemImageName: "play.circle")) ```

Members (5)

get · iOS 26.0+

pauseButton

TypeScript
get pauseButton(): (AlarmButton) | null
Swift declaration
var pauseButton: AlarmButton?

The pause button for a countdown timer. If you specify, the countdown includes a pause button when presented by the templated UI.

set · iOS 26.0+

pauseButton

TypeScript
set pauseButton(value: (AlarmButton) | null)
Swift declaration
var pauseButton: AlarmButton?

The pause button for a countdown timer. If you specify, the countdown includes a pause button when presented by the templated UI.

get · iOS 26.0+

title

TypeScript
get title(): _Foundation_LocalizedStringResource
Swift declaration
var title: LocalizedStringResource

The title of the countdown.

set · iOS 26.0+

title

TypeScript
set title(value: _Foundation_LocalizedStringResource)
Swift declaration
var title: LocalizedStringResource

The title of the countdown.

init · iOS 26.0+

init

TypeScript
static init(title: _Foundation_LocalizedStringResource, pauseButton?: (AlarmButton) | null): AlarmPresentation_Countdown
Swift declaration
init(title: LocalizedStringResource, pauseButton: AlarmButton? = nil)

Creates a countdown with an optional pause button. - Parameters: - title: The title of the countdown. - pauseButton: The optional pause button for a countdown timer.

Skipped declarations

No declarations were skipped in this snapshot.

All AlarmKit types →