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,
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)

Loading…
Cancel
Save