Timer plays sound when expired

This commit is contained in:
VincentMeilinger
2024-01-11 20:55:18 +01:00
parent 9b225f63b5
commit c6c60faf01
6 changed files with 52 additions and 0 deletions

View File

@@ -623,4 +623,8 @@ extension MainViewModel {
func getTimer(forRecipe recipeId: String, duration: DurationComponents) -> RecipeTimer {
return timers[recipeId] ?? createTimer(forRecipe: recipeId, duration: duration)
}
func deleteTimer(forRecipe recipeId: String) {
timers.removeValue(forKey: recipeId)
}
}