From 73bb0717864b66a7447b2d09b4960b8f7cfeb411 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 2 Jun 2020 18:54:55 -0700 Subject: [PATCH] Adding notes to reminders. --- Clocker/Events and Reminders/RemindersHandler.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Clocker/Events and Reminders/RemindersHandler.swift b/Clocker/Events and Reminders/RemindersHandler.swift index 1c43b79..862e18e 100644 --- a/Clocker/Events and Reminders/RemindersHandler.swift +++ b/Clocker/Events and Reminders/RemindersHandler.swift @@ -49,7 +49,8 @@ extension EventCenter { func createReminder(with title: String, timezone: String, alertIndex: Int, - reminderDate: Date) -> Bool { + reminderDate: Date, + additionalNotes: String?) -> Bool { if reminderAccessNotDetermined() || reminderAccessDenied() { return false } @@ -65,6 +66,7 @@ extension EventCenter { reminderEvent.title = "\(title) - Clocker" reminderEvent.startDateComponents = reminderComponents reminderEvent.dueDateComponents = reminderComponents + reminderEvent.notes = additionalNotes addAlarmIfNeccesary(for: reminderEvent, alertIndex)