Questions tagged [eventkit]
EventKit is a framework on iOS and OS X which provides classes for accessing and modifying calendar event information.
eventkit
572
questions
0
votes
0
answers
51
views
How to identify when a specific instance of a recurring event has changed?
Relatively new SwiftUI programmer here (~6 months). I've been at this problem for days, searching the web, Stack Overflow and GPT4. I feel like I must be missing something obvious.
Building an app ...
0
votes
0
answers
53
views
How to get built-in calendars using Swift?
I want to get subscription calendar ('USOS' calendar from screenshot) but I can't filter built-in calendars such as 'US Holidays' or 'Święta w Polsce'. So my question is how to filter built-in ...
0
votes
2
answers
365
views
How to add items to Reminders App in iOS 17.0?
I'm building an app that allows the user to add and create events in the Calendar native app for iPhone.
One of the features I'm working on is also to allow the user to add and create items in the ...
5
votes
2
answers
1k
views
Why does EKEventStore().requestFullAccessToEvents() work with Simulators but not with real device?
I'm building an iOS App that creates programatically events in the iOS Calendar.
My code works perfectly when run in any iOS Simulator. But then when installled in any physical device, it simply doesn'...
0
votes
1
answer
56
views
EKEventEditViewController Add and Cancel buttons are missing but clickable
I'm popping up the EKEventEditViewController and the Add and Cancel buttons seem like they are there - just maybe invisible or white font or something.
The bar button item text is white for the rest ...
2
votes
0
answers
103
views
Getting event from eventId in Swift not working
In my CalendarEventsManager class, I use singleton to save an Event. I ommit calendar access permissions code here, which work OK:
import SwiftUI
import EventKit
final class CalendarEventsManager ...
0
votes
1
answer
112
views
Create EKCalendar
I'm facing some problems with creating a new calendar inside a Swift program.
This code snippet almost works perfectly:
func createNewCalendar(withName name: String) {
let eventStore = ...
2
votes
1
answer
159
views
How can I fetch all events from all my calendars using EventKit and pyobjc
I'm fairly new to the Apple Developer program and I'm trying to figure out some basic things.
One of them is to fetch all events from all my calendars. As far as I know this should be possible with ...
0
votes
0
answers
52
views
Is there a way to pass the timing of a scheduled EKEvent back to its iOS 17 app without requiring full read-write calendar access?
I'm new to EventKit and EventKitUI and trying to figure out how to extract the event start and stop timing from an event created within an iOS 17 app with an EventEditViewController. I pass proposed ...
0
votes
1
answer
54
views
Can EKEvents be stored using another store(Other then EKEventStore)?
I am using Core Store in Swift for a MacOS project and I want to schedule Employees (modeled with `CoreStoreSchema`) into shifts (mathematically using WCSP). It's more complicated than that, but that ...
0
votes
1
answer
193
views
Error happens during creating reminder on MacOS using Swift
I have universal App for iOS and MacOS on SwiftUI. I need to create reminder. I have a code that works on iOS:
import EventKit
func checkRemindersPermission() {
let eventStore = EKEventStore()
...
0
votes
1
answer
46
views
Can an array of a superclass `EKCalendarItem` store elements that are subclassed, like `EKEvent` and `EKReminder`
I have a calendar viewer in which I would like to use a combination of calendar-events and reminder-events.
Just as Apple provides two different first-party apps, internally, the two are different ...
0
votes
1
answer
150
views
Is there an API to get the email associated to an event on the macOS calendar?
I'm trying to find a way to retrieve the email account associated to calendar events on the Mac. Is there a way to do that?
I tried looking in to the EKEvent object and it does not indicate the email ...
0
votes
0
answers
97
views
Is there any way at all to listen to EKEventStoreChanged in the background?
I am working on a calendar app that uses EventKit and everything works great with one exception: notifications. If an event is changed in any way outside my app (e.g. by either the organiser or by the ...
1
vote
0
answers
154
views
Swift under macOS- How to read Calendar events access problems
I did create this part of the code to import the Agenda event, but it does not read any event. Did set in the SandBox settings the Agenda checkbox, did check the entitlements file. Did insert a ...