Questions tagged [eventkit]

EventKit is a framework on iOS and OS X which provides classes for accessing and modifying calendar event information.

From the documentation:

The Event Kit and Event Kit UI frameworks together allow applications to access event information from a user’s Calendar database. You can fetch events based on a date range or a unique identifier, receive notifications when event records change, and allow users to create and edit events for any of their calendars. Changes made to events in a user’s Calendar database with Event Kit are automatically synced with the appropriate calendar (CalDAV, Exchange, and so on)

The EventKit framework provides classes for accessing and manipulating calendar events and reminders.

Event Kit not only allows your app to retrieve users’ existing calendar and reminder data, but it also lets your app create new events and reminders for any of their calendars. In addition, Event Kit lets users edit and delete their events and reminders (collectively known as “calendar items”). More advanced tasks, such as adding alarms or specifying recurring events, can be achieved with Event Kit as well. If a change to the Calendar database occurs from outside of your app, Event Kit is able to detect the change by notification so your app can act appropriately. Changes made to calendar items with Event Kit are automatically synced to the associated calendar (CalDAV, Exchange, and so on).

Event Kit provides limited access to a user’s Calendar database; it does not include everything that would be desired for implementing a full-featured calendar or reminder app, such as adding attendees or accounts.

Reference:

1.EventKit Constants Reference

2.EventKit Framework Reference

3.Introduction to Calendars and Reminders

4.EventKit UI Framework Reference

Sample Code:

SimpleEKDemo

567 questions
3
votes
0 answers

EventKit. How can I get videoconference url from EKEvent

I have an event that has a meet or zoom link. However, I can't find a way to get the link of type https://meet.google.com/.... An example: let calendars = eventStore.calendars(for: .event) var events: [EKEvent] = [] for calendar in…
torcelly
  • 516
  • 4
  • 8
3
votes
1 answer

Manage iPhone Calendar event from our application

The following is my code NSLog(@"%@", thisEvent1.title); EKEvent *thisEvent = [EKEvent eventWithEventStore:eventStore]; eventStore = [[EKEventStore alloc] init]; thisEvent = [EKEvent eventWithEventStore:eventStore]; NSDateFormatter * …
Dilip Rajkumar
  • 7,006
  • 6
  • 60
  • 76
3
votes
2 answers

Why are Google calendars not showing up in EKCalendarChooser on macOS in SwiftUI

everyone. What I am doing: I am writing a program doing various date and time-related things in SwiftUI for iOS and macOS. The current version of the UI is written in SwiftUI. Since my program can use EventKit (the engine behind events in…
3
votes
0 answers

Weird blank area showing up after cancelling when using EKEventEditViewController in SwiftUI

What I am trying to do: I am writing a time/date program for iOS and MacOS that does things which Apple’s programs do not do. My program allows using, creating, and editing the same events one sees in Calendar.app, so my code uses EventKit and…
3
votes
1 answer

NSTimezone problem using EventKit

I need to make entries in the iPhone calendar, using EventKit framework. Since my app should be international, I need to take care of differnt timezones. What I am doing right now: An event should start at 6:00 am. Therefore I am creating a NSDate…
Drunk
  • 31
  • 3
3
votes
2 answers

How to identify an EKCalendar to store a user calendar selection

When working with the users calendar, I implemented an EKCalendarChooser which allows the user to select multiple of his calendars. The selected calendar instances are retrieved just fine. Now I later want to use this selection but how can I store…
Leo
  • 1,508
  • 13
  • 27
3
votes
0 answers

How to get EKEvent Attached files to a meeting

Is there a way to get attachments from a calendar event? I am talking about EKEvent. I see that iOS Calendar shows the attachments as follows: But I cannot find anything in the EKEvent or EKCalendarItem that shows me how I can get the meeting…
Dogahe
  • 1,380
  • 2
  • 20
  • 50
3
votes
0 answers

How to set an icon for the List object in Apple's Reminder app programmatically?

I know that List objects in Apple's Reminder app are in-fact EKCalendar objects as per this post. I can access List's title property and rename the List as I wish. However, I don't see a way to set or select an icon, although icon selection is there…
3
votes
2 answers

Swift 4 How to get all events from calendar?

I am using Swift 4.1. And I want to write a function which will collect all events from all calendars in Calendar app of iOS. Thanks to this answer on stackoverflow: How to get all Events out of a Calendar (Swift) I was able to write my own class…
Alex
  • 1,038
  • 2
  • 12
  • 32
3
votes
1 answer

EventKit: error when an instance of EKEventEditViewController presented, then a crash after location edit

I am getting the following error message when editing an existing event by presenting an instance of EKEventEditViewController: [EventKit] Need the following entitlement in order to determine if MobileCal has location authorization required to do…
OgD
  • 31
  • 3
3
votes
1 answer

EventKit error getting meetings iOS 11.2.2 on initial load

EventKit showing error when you fetch data for the first time. [EventKit] Error getting all calendars: Error Domain=EKCADErrorDomain Code=1019 "(null)" 2018-01-17 19:19:22.190518+0530 StickyNoteApp[426:40382] [EventKit] Error getting default…
Akash Shindhe
  • 558
  • 4
  • 16
3
votes
2 answers

EventKit in iOS 11 Causing Problems

Since I upgraded my app to Xcode 9 and iOS 11, I've been experiencing some inconsistencies with EventKit. For example, when creating a new event, the event.eventIdentifier is returning nil, when the property is declared as String!. Before iOS11,…
the Reverend
  • 12,305
  • 10
  • 66
  • 121
3
votes
0 answers

Creating EKCalendar IOS Objective-C

I use to EventKit to create EKCalendar. I try to create it using this method. when I test it in Simulator calendar creates (screenshot) and appears in default Calendar, but when I do the same on device it doesn't work, there are no errors , all the…
Evgenii
  • 422
  • 2
  • 14
3
votes
1 answer

How to get the travelTime of an EKEvent instance

I'd like to get the travel time of a calender event (EKEvent), but I get this error: Value of type 'EKEvent' has no member 'travelTime'. When I print an EKEvent, I get this: EKEvent <0x79f6f460> { EKEvent <0x79f6f460> { title = Test;…
Bram
  • 95
  • 7
3
votes
1 answer

Creating Multiple Event on Calendar Using Background Thread

I have to update calendar based on response(events) from the server. I made an array to hold all the event objects and iterating it to save the events on the calendar. Its working but problem is its creating only one random event not all. I have…
Kunal Kumar
  • 1,722
  • 1
  • 17
  • 32