Created
July 28, 2025 19:39
-
-
Save jacobsapps/0aaab50152df22e4851707a5f9c1d980 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func setStandupAlarm() async throws { | |
let schedule = Alarm.Schedule.relative(Alarm.Schedule.Relative( | |
time: Alarm.Schedule.Relative.Time(hour: 10, minute: 0), | |
repeats: Alarm.Schedule.Relative.Recurrence.weekly( | |
[.monday, .tuesday, .wednesday, .thursday, .friday] | |
)) | |
) | |
try await scheduleAlarm(at: schedule) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment