Search code examples
iosswiftmacoseventkit

EKReminder which was created by stock Reminder app has startDateComponents of nil value


It seems like reminders which were created from stock Reminder app, when fetched by eventStore.fetchReminder(), have their startDateComponents equal nil. I have these sample reminders below: My sample reminders

But when I fetched and tried debugging, startDateComponents was shown nil My debug

I'm not sure what I did wrong during fetching reminders... Because it seems to work perfectly with reminders added from 3rd party apps... Please help!


Solution

  • Here are the comments summarized as a response: For a reminder, the startDateComponents property is not necessarily filled. At least, the iOS Reminders app doesn't do this.

    The date that can be entered for a reminder ends up in the dueDateComponents property.