Questions tagged [ekcalendar]
24 questions
17
votes
1 answer
URL scheme for opening native calendar with specific event id
At first, I knew there is no public APIs for this approach.
Tapping an event from iOS8 native calendar widget launches calendar with specific event. So, I can guess that there must be a URL scheme for it. Because widget and calendar works on each…

jeeeyul
- 3,727
- 1
- 24
- 37
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
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
2
votes
1 answer
Get the Calendar Color from EKEvent in Swift
In Apple's EventKit each Calendar can have a user-definable color, which can also be accessed on the EKCalendar instance as EKCalendar.color.
How can that color be accessed from a single event (not a calendar)? Is there any back-reference from an…

Leo
- 1,508
- 13
- 27
2
votes
0 answers
Cannot delete EKCalendar, get Error Domain=EKErrorDomain Code=72
I would like to delete an EKCalendar. This works fine on iOS devices and simulators, however trying to get this working on Catalina is problematic. Whatever I try I get this:
Error Domain=EKErrorDomain Code=72 "Can't delete a calendar if doing
…

wastebasket
- 21
- 2
2
votes
1 answer
EKCalendar showing events "Found in Natural Language" which are not in Apple Calendar
I am currently reading all calendar events with a function similar to what is described here: https://www.andrewcbancroft.com/2016/04/28/listing-calendar-events-with-event-kit-and-swift/
i.e.
// Use an event store instance to create and…

Pauli
- 343
- 1
- 4
- 17
2
votes
2 answers
EKCalendar title returns null ios 11
This code has been working fine prior to ios 11, but now in ios 11 the ID works fine but the title returns null.
NSArray *availablePersonalCalendars = [eventStore calendarsForEntityType:EKEntityTypeEvent];
for (EKCalendar *cal in…

Mona
- 5,939
- 3
- 28
- 33
1
vote
1 answer
Remove Add Calendar button from Calendar Chooser
I present my Calendar Chooser as shown below:
let calendarChooser = EKCalendarChooser(selectionStyle: .single,
displayStyle: .writableCalendarsOnly,
entityType: .event,
…

geohei
- 696
- 4
- 15
1
vote
0 answers
Unable to save EKEvent as calendar is missing default organizer
I am trying to save a new EKEvent to a new local calendar I create using:
newCalendar.source = self.eventStore.sources.filter { (source: EKSource) -> Bool in source.sourceType.rawValue == EKSourceType.local.rawValue}.first!
do {
try…

Trond Kristiansen
- 2,379
- 23
- 48
1
vote
0 answers
Can we create our own default calendar programmatically?
I am facing an issue while creating a calendar, i've signed out from iCloud to remove all other merged calendars. Now, there is only Gmail and yahoo calendars left and gmail is my default calendar. I want to create my own calendar and mark it as…

Shahriyar Ahmed
- 94
- 8
1
vote
1 answer
app specific local calendar groups not saving in ios 9 but working in ios10
`enum CalendarType: String {
case appointment = "Vyhnes Appointment"
case event = "Vyhnes Event"
case shipment = "Vyhnes Shipment"
static var all = [appointment.rawValue, event.rawValue,
shipment.rawValue]
}`
func…

Sand'sHell811
- 358
- 3
- 15
0
votes
0 answers
Trying to Update Calendar, Getting Various Errors
I can add a new calendar to the user's calendars like this, using the saveCalendar(_:commit:) method:
let ekStore = EKEventStore()
func saveCalendar(calendar: EKCalendar) throws {
try ekStore.saveCalendar(calendar, commit: true)
}
and
let…

JustMakeStuff
- 419
- 3
- 19
0
votes
1 answer
EKCalendarChooser delegate not working from within NSObject
I have an NSObject class that consists of a basic EKCalendarChooser implementation and I am unable to get the delegate functions calendarChooserDidFinish, calendarChooserSelectionDidChange, and calendarChooserDidCancel working. I'm not sure if it is…

Matt
- 1,087
- 1
- 12
- 28
0
votes
2 answers
How to differentiate between event saved through my app and event saved by using calendar app using EventKit?
I have successfully saved the events of my application to local calendar using Eventkit but now I want to delete the events that I have saved using my application only.
But the below code give me list of all events saved on calendar but I just want…

Shipra Gupta
- 171
- 1
- 2
- 10
0
votes
0 answers
Inherit from EKCalendarItem
Because EKEvent can not hold extra properties, I was thinking of creating my own class Event and inherit from EKCalendarItem (same as EKEvent class).
But I get a FrozenClass error, which is quite new to me. Does anybody have any idea of what that…

Silviu B.
- 43
- 8