One Logo Pool Ball
AlarmKit · IOS API REFERENCE

AlarmPresentation

struct · iOS 26.0+ · SDK 27.1

struct AlarmPresentation

An object that describes the content required for the alarm UI. The following example shows how to set different views for an alarm using the `AlarmPresentation` model. ```swift let alert = AlarmPresentation.Alert( title: "Eggs are ready!", secondaryButton: AlarmButton(text: "Repeat", textColor: .blue, systemImageName: "repeat"), secondaryButtonBehavior: .countdown) let countdown = AlarmPresentation.Countdown(title: "Eggs are cooking") let paused = AlarmPresentation.Paused( title: "Timer paused", resumeButton: AlarmButton(text: "Resume", textColor: .blue, systemImageName: "play.circle")) let presentation = AlarmPresentation(alert: alert, countdown: countdown, paused: paused) ```

Members (7)

init · iOS 26.0+

init

TypeScript
static init(alert: AlarmPresentation_Alert, countdown?: (AlarmPresentation_Countdown) | null, paused?: (AlarmPresentation_Paused) | null): AlarmPresentation
Swift declaration
init(alert: AlarmPresentation.Alert, countdown: AlarmPresentation.Countdown? = nil, paused: AlarmPresentation.Paused? = nil)

Configures an alert with an optional countdown and paused state. - Parameters: - alert: The required content for the alert mode of the alarm. - countdown: An optional parameter with a default `nil` value. Provide a ``Countdown`` object. - paused: An optional parameter with a default `nil` value. Provide a ``Paused`` object.

get · iOS 26.0+

alert

TypeScript
get alert(): AlarmPresentation_Alert
Swift declaration
var alert: AlarmPresentation.Alert

The content for the alert mode of the alarm.

set · iOS 26.0+

alert

TypeScript
set alert(value: AlarmPresentation_Alert)
Swift declaration
var alert: AlarmPresentation.Alert

The content for the alert mode of the alarm.

get · iOS 26.0+

paused

TypeScript
get paused(): (AlarmPresentation_Paused) | null
Swift declaration
var paused: AlarmPresentation.Paused?

The content for the pause mode of the alarm. This value can be `nil` if the alarm doesn't support pause mode.

set · iOS 26.0+

paused

TypeScript
set paused(value: (AlarmPresentation_Paused) | null)
Swift declaration
var paused: AlarmPresentation.Paused?

The content for the pause mode of the alarm. This value can be `nil` if the alarm doesn't support pause mode.

get · iOS 26.0+

countdown

TypeScript
get countdown(): (AlarmPresentation_Countdown) | null
Swift declaration
var countdown: AlarmPresentation.Countdown?

The content for the snooze or countdown mode of the alarm. This value can be `nil` if the alarm doesn't support countdown mode.

set · iOS 26.0+

countdown

TypeScript
set countdown(value: (AlarmPresentation_Countdown) | null)
Swift declaration
var countdown: AlarmPresentation.Countdown?

The content for the snooze or countdown mode of the alarm. This value can be `nil` if the alarm doesn't support countdown mode.

Skipped declarations

No declarations were skipped in this snapshot.

All AlarmKit types →