I don't know if it's a bug or not but store.reset() does not seem to actually reset the store like the comments suggests,
It essentially is as if you released the store and then created a new one. It brings it back to its initial state. If we actually do create a new store, the issue seems to be resolved. So the access handler should look something like this:
store.requestAccess(to: .event) { (granted, error) in
if granted {
self.store = EKEventStore()
...
}
I found the answer on this post. Stack Overflow - https://stackoverflow.com/questions/58873603/ekeventstore-calendars-is-always-empty-after-clean-install.
Topic:
App & System Services
SubTopic:
General
Tags: