(iOS Swift) Share EKEventStore and access between app and Today Extension
<p>I created an app that is mainly used by a Today Extension. It has to have access to the calendar because the widget displays upcoming events. Now I want the "host app" to have a list of all the users calendars and lets the user decide which calendars the widget should consider getting the events from. </p>

<p>My understanding is that the EKEventStore() initializer should not be called multiple times (by the widget and the host app in this example).
Is there an easy way to only ask once for the permission to use the calendar (regardless whether the user first interacts with the host app or the widget) and share the permissions or do I have to check for permission in both the widget and the host app? Also, how should I ideally deal with using the EKEventStore() initializer in both the widget and the app? </p>