Slide 47
Slide 47 text
Χϯτμϯ࣮ λΠϚʔػೳͱεψʔζ
let alertContent = AlarmPresentation.Alert(
title: "AlarmKitΛ͑Δొஃ࣌ؒ",
stopButton: .stopButton,
secondaryButton: .repeatButton,
secondaryButtonBehavior: .countdown
)
let countdownContent = AlarmPresentation.Countdown(title: "ۓுͷొஃ", pauseButton: .init(text: "ఀࢭ",
textColor: .orange, systemImageName: "pause"))
let pausedContent = AlarmPresentation.Paused(title: "ۓு࠶։", resumeButton: .init(text: "࠶։",
textColor: .blue, systemImageName: "play.fill"))
let attributes = AlarmAttributes(
presentation: AlarmPresentation(
alert: alertContent,
countdown: countdownContent,
paused: pausedContent
),
metadata: CookingData(method: .fry),
tintColor: .orange
)
let id = UUID()
let alarmConfiguration = AlarmConfiguration(
countdownDuration: .init(preAlert: 15 * 60, postAlert: 5 * 60),
attributes: attributes,
secondaryIntent: RepeatIntent(alarmID: id.uuidString)
)