Browse Source

Adding notes to reminders.

pull/92/head
Abhishek 5 years ago
parent
commit
73bb071786
  1. 4
      Clocker/Events and Reminders/RemindersHandler.swift

4
Clocker/Events and Reminders/RemindersHandler.swift

@ -49,7 +49,8 @@ extension EventCenter {
func createReminder(with title: String, func createReminder(with title: String,
timezone: String, timezone: String,
alertIndex: Int, alertIndex: Int,
reminderDate: Date) -> Bool { reminderDate: Date,
additionalNotes: String?) -> Bool {
if reminderAccessNotDetermined() || reminderAccessDenied() { if reminderAccessNotDetermined() || reminderAccessDenied() {
return false return false
} }
@ -65,6 +66,7 @@ extension EventCenter {
reminderEvent.title = "\(title) - Clocker" reminderEvent.title = "\(title) - Clocker"
reminderEvent.startDateComponents = reminderComponents reminderEvent.startDateComponents = reminderComponents
reminderEvent.dueDateComponents = reminderComponents reminderEvent.dueDateComponents = reminderComponents
reminderEvent.notes = additionalNotes
addAlarmIfNeccesary(for: reminderEvent, alertIndex) addAlarmIfNeccesary(for: reminderEvent, alertIndex)

Loading…
Cancel
Save