You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LeCountdown/LeCountdown/CountdownScheduler.swift

26 lines
735 B

//
// CountdownScheduler.swift
// Countdown
//
// Created by Laurent Morvillier on 15/01/2023.
//
import Foundation
import UserNotifications
//class CountdownScheduler {
//
// static let master = CountdownScheduler()
//
// static let notificationIdSeparator: String = "||"
//
// func scheduleIfPossible(countdown: Countdown, handler: @escaping (Result<Date?, Error>) -> Void) {
// DispatchQueue.main.async {
// self.cancelCurrentNotifications(countdownId: countdown.stringId)
// Conductor.maestro.startCountdown(countdown: countdown, handler: handler)
// self._scheduleCountdownNotification(countdown: countdown, handler: handler)
// }
// }
//
//
//}