Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacobsapps/0aaab50152df22e4851707a5f9c1d980 to your computer and use it in GitHub Desktop.
Save jacobsapps/0aaab50152df22e4851707a5f9c1d980 to your computer and use it in GitHub Desktop.
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