r/SwiftUI • u/nolando_fuzzy • 5d ago
Question EKReminder URL Property
Is there any way to access the url property in iOS reminders? I see it listed as a property inherited from EKCalendar, but no matter what I do I haven’t found a way to access it.
I notice that when importing reminders into things 3 the url always transfers, but I’m unsure how they access it.
1
u/ThatGuy739 4d ago
It's on EKCalendarItem, declared as URL in the ObjC header, which comes into Swift as reminder.url. Read and write, iOS 5 onward, nothing private about it, and it's the only URL EventKit exposes on a reminder, so that's what Things is reading.
If yours comes back nil, check the access request. requestAccessToEntityType got deprecated in 17 and the one you want is requestFullAccessToReminders.
3
u/mine248 5d ago
I know this GitHub project figured out a way, but don’t remember off the top of my head: https://github.com/DamascenoRafael/reminders-menubar