1

How to add a reminder using EventKit in iOS 13 without the hour part in the alarm, so it reminds at the default user-selected time?
This code creates a new event, but it also sets the alarm to run at the midnight (self.date is at midnight).

let event: EKReminder = EKReminder(eventStore: eventStore)
event.title = "Hello World!"
event.calendar = eventStore.defaultCalendarForNewReminders()
let alarm = EKAlarm(absoluteDate: self.date)
event.addAlarm(alarm)
royal
  • 19
  • 2

0 Answers0