Can I integrate an iOS calendar in my app? - ios

At the moment I am creating an iOS app with Swift.
In the app I want among others one of my shared iCloud calendars to be displayed.
It would be best if this iOS calendar is just displayed within the app.
An important feature is that if I add an event in my shared calendar it should of course also be added to the app.
An amazing but optional feature would be:
My AppleID of course can edit the calendar. If the app would recognise that I am using a device with an AppleID that is allowed to edit the calendar so that I would be able to edit the calendar.
To sum it up: it would be best if in my app the iOS calendar is just embedded.
Thank you for your help

I think this is what you looking for https://developer.apple.com/documentation/eventkit
EventKit is the way to read from the calendar.
After that, you can choose how to display the events that you get. The easiest way for me was in a UITableView.

Related

How to show default calendar in viewcontroller of iOS

I am trying to fetch my default calendar view of iPhone in my viewcontroller .
Does it Possible ?
Tab on button and open will worked([[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"calshow://"]];
) and some Third party will also worked !!!!!!
Your question can be understood one of three ways:
If you're looking to access the events that your iPhone's calendar contains, you can use Apple's EventKit framework.
If you're looking to open the calendar app from your app, there's a URL scheme called calshow:// which can do that. Based on my quick search, I'm unsure if Apple actually allows this.
If you're looking to display your own calendar UI in your app, there's a bunch of libraries out there.
Disclosure: I wrote MBCalendarKit.
You can find it on Cocoapods on this link or you can get it on Github at this link. This little library is unlike the others in that its configurability is up to the developer. You can check out some of the calendars that its users have developed for it here. And you can see its setup tutorial here. Video tutorials here. It also as a demo that you can download right from GitHub. Btw, If you have never heard of cocoapods, then invest 10 mins of your time to learn about it. It is the easiest way to integrate 3rd party libraries to your iOS projects.
Other top calendars I have compared it with:
CalendarView
FSCalendar
MBCalendarKit
PTDSimpleCalendar
GCCalendar
CVCalendar
GLCalendarView

Syncing of Calendar with iCloud lose the CalendarIdentifier

I am developing a Calendar App. In which calendars can be create by user and also need the iCloud Syncing feature so that user can get the same calendars on his/her other device. Now according to Apple Document:
A full sync with the calendar will lose this identifier. You should have a plan for dealing with a calendar whose identifier is no longer fetchable by caching its other properties.
CalendarIdentifier property of EKCalendar is not reliable. And using other properties we can not differentiate the calendar as well that it is made by iOS Native Calendar App or My Calendar App. So I am stuck here and trying to find any reliable solution. But not able to find till now so please help me for this to get the solution. I will be thankful to you.

How to Sync Google Calendar in ios application?

I am working on a iphone app, in which i have created a calendar and added events on it. but now i have to add these events on Google calendar. After a long search , i didn't found any good ways to do this. Please Help me.

Create recurring events without showing those in Calendar in iOS

I'm building a really simple App that needs to update its database following some users choices. Imagine a simple App for personal finances where users define some recurring transactions.
I'm trying to figure out which could be the best way to implement this feature.
I suppose that working with EventKit could be a good solution, but I can't understand if the events that I'm going to add through this framework are at the end also displayed into users calendar (which is a behaviour that I don't want).
So my question is which is in your opinion the best way to perform recurring events for an Application, without let the user know about that? (obviously through the application users can edit/remove/add these events).
Well EventKit is the SDK that allows you to interact with the user calendar, so any thing you add the calendar will be visible in the users calendar.
If you don't want you event to show in the users calendar then don't use EventKit. Just store all the event in a local database and use UILocalNotification to alert the user.

EventKit without using Calendar or Reminders App

I am curious if there is a way to use the capabilities of EventKit - creating events, recurrence rules, etc. - without actually having to interface with the Calendar and Reminders apps?
A little more detail on requirements and such:
A user launches my app, and creates a new event-style entry there
The event-style entry does not actually appear in the Reminders or Calendar app
My app can still access the event-style entry and its related options
Note: There could/would be a preference option to make the created event-style entries visible in the Reminders/Calendar app.
Basically, to achieve the ability to use or not use the Reminders/Calendar apps, I don't want to have to write two versions of the code - one using my own EventKit-esque implementation - and the other using the real EventKit framework APIs.
Nope—EventKit is designed to work with the existing calendar stores that Calendar and Reminders have access to. If you want to create events that they don’t know about, you have to roll your own calendar store. You can certainly model it after EventKit for relative ease of switching between the two, but you’ll need to reimplement whatever parts of the API’s functionality you’re planning to use.

Resources