Home

Awesome

CalendarLib

Version License Platform

CalendarLib is a set of views and controllers for displaying and scheduling events on iOS.

Warning:

As some people may have noticed, this project has not got any update recently, and a lot of issues / pull requests remain unanswered. I’m very sorry for that, but I don’t have any time at the moment to take care of this repo, being very busy with other projects. I may come back to it in the future, but meanwhile, please don’t expect any update soon.

Thanks anyway to all the contributors!

Day Planner View Day Planner View Month Planner View Month Planner View Year Calendar View

Features

Compatibility

iPad / iPhone with iOS 8 or higher.

Installation

CocoaPods

The best way is to use CocoaPods. Add the following line to your Podfile :

pod "CalendarLib"

The old way

If you don't want to use CocoaPods, you need to copy the content of the CalendarLib folder into your project, as well as the source of the two dependencies : OSCache and OrderedDictionary.

Getting started

  1. If you want to use EventKit as a data source, create an instance of MGCDayPlannerEKViewController or MGCMonthPlannerEKViewController, or subclass them for your own needs.

    Don't forget to add the following frameworks to the project:

    • EventKit.framework
    • EventKitUI.framework
  2. If you want to use another event provider, subclass one of MGCDayPlannerViewController or MGCMonthPlannerViewController and implement the data source protocol methods.

  3. If you want to use a custom event cell, subclass MGCEventView or MGCStandardEventView and register the class with the day / month planner view.

See the demo project to get an idea of how to use the library and check the documentation

License

CalendarLib is available under the MIT license. See the LICENSE file.

Change-log

A summary of each CalendarLib release can be found in the CHANGELOG.