Skip to content

graycampbell/GCCalendar

Repository files navigation

banner

Release CocoaPods Documentation Codacy Code Quality Swift 4 Compatible Platform License

CocoaPods

pod 'GCCalendar'

Implementation

  1. Add GCCalendar to your file's import statements.

    import GCCalendar
    
  2. Create an instance of GCCalendarView.

    let calendarView = GCCalendarView()
    
  3. Set the delegate and the display mode. If you don't set the delegate and the display mode, the calendar will not appear.

    calendarView.delegate = self
    calendarView.displayMode = .month
    
  4. Implement GCCalendarViewDelegate.

    func calendarView(_ calendarView: GCCalendarView, didSelectDate date: Date, inCalendar calendar: Calendar)
    

Documentation

License

GCCalendar is available under the MIT license. See the LICENSE file for more info.