Schedules alarm notification when added

This commit is contained in:
Aaron
2021-01-24 17:40:05 -05:00
parent 6d7b19a478
commit 4f31b80707
4 changed files with 51 additions and 3 deletions
+4 -1
View File
@@ -82,7 +82,10 @@ class AddAlarmViewController: UIViewController
// Add the alarm to the list and save the list
Alarms.fromLocal().apply { $0.list.append(alarm) }.localSave();
//Schedules notification for the alarm
Notification(alarm: alarm).scheduleNotification()
// Dismiss this view
self.dismiss(animated: true, completion: nil)
}