Hello, is there a way to specify the calendar to create an event in?
So far I’ve tried this:
let c = new Calendar.defaultForEvents() let ce = new CalendarEvent([c]) ce.title = "This is a test" ce.save()
…and it creates a calendar event in the default “Family” calendar. I also tried specifying the calendar title (
ce.c.title = “TestCalendarName”), and it just renames the “Family” calendar to “TestCalendarName”.
I think it has something to do with the identifier.
Can anyone help?