One Logo Pool Ball
AlarmKit · IOS API REFERENCE

AlarmButton

struct · iOS 26.0+ · SDK 27.1

struct AlarmButton

A struct that defines the appearance of buttons. The following example uses `AlarmButton` to define the appearance of the alarm. ```swift let alert = AlarmPresentation.Alert( title: "Eggs are ready!", secondaryButton: AlarmButton(text: "Repeat", textColor: .blue, systemImageName: "repeat"), secondaryButtonBehavior: .countdown) ```

Members (7)

get · iOS 26.0+

systemImageName

TypeScript
get systemImageName(): string
Swift declaration
var systemImageName: String

The name of the icon you use on the button.

set · iOS 26.0+

systemImageName

TypeScript
set systemImageName(value: string)
Swift declaration
var systemImageName: String

The name of the icon you use on the button.

init · iOS 26.0+

init

TypeScript
static init(text: _Foundation_LocalizedStringResource, textColor: _SwiftUICore_Color, systemImageName: string): AlarmButton
Swift declaration
init(text: LocalizedStringResource, textColor: Color, systemImageName: String)

Creates an alarm button. - Parameters: - text: The text for a label on the button. - textColor: The color for the text on the button. - systemImageName: The name of the icon you use on the button.

get · iOS 26.0+

text

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

Text to show in a label on the button.

set · iOS 26.0+

text

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

Text to show in a label on the button.

get · iOS 26.0+

textColor

TypeScript
get textColor(): _SwiftUICore_Color
Swift declaration
var textColor: Color

The color for the text on the button.

set · iOS 26.0+

textColor

TypeScript
set textColor(value: _SwiftUICore_Color)
Swift declaration
var textColor: Color

The color for the text on the button.

Skipped declarations

No declarations were skipped in this snapshot.

All AlarmKit types →