pod 'GCCalendar'
-
Add GCCalendar to your file's import statements.
import GCCalendar
-
Create an instance of GCCalendarView.
let calendarView = GCCalendarView()
-
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
-
Implement GCCalendarViewDelegate.
func calendarView(_ calendarView: GCCalendarView, didSelectDate date: Date, inCalendar calendar: Calendar)
GCCalendar is available under the MIT license. See the LICENSE file for more info.