Reputation: 81
I want to get the list each task belongs to. How can I get it using EventKit
?
It seems that the EKReminder
doesn't have a property describing which list it belongs to.
Upvotes: 0
Views: 894
Reputation: 71
Yes, for reminders, the list it belongs to is called the calendar. To further expand on that answer, you can access it like this:
let list = reminder.calendar
To get the list title:
let listTitle = reminder.calendar.title
You can even get the list color:
let listColor = reminder.calendar.cgColor
Upvotes: 4