https://github.com/graycampbell/GCCalendar
A customizable calendar view for iOS 9+ written in Swift.
https://github.com/graycampbell/GCCalendar
calendar calendar-component calendar-view cocoapods ios swift
Last synced: 3 months ago
JSON representation
A customizable calendar view for iOS 9+ written in Swift.
- Host: GitHub
- URL: https://github.com/graycampbell/GCCalendar
- Owner: graycampbell
- License: mit
- Created: 2016-01-28T19:13:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-05T02:17:03.000Z (over 6 years ago)
- Last Synced: 2024-10-31T16:15:57.050Z (11 months ago)
- Topics: calendar, calendar-component, calendar-view, cocoapods, ios, swift
- Language: Swift
- Homepage: https://graycampbell.github.io/GCCalendar
- Size: 6.37 MB
- Stars: 56
- Watchers: 4
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/graycampbell/GCCalendar/releases/latest)
[](https://cocoapods.org/pods/GCCalendar)
[](https://graycampbell.github.io/GCCalendar)
[](https://www.codacy.com/app/graycampbell/GCCalendar?utm_source=github.com&utm_medium=referral&utm_content=graycampbell/GCCalendar&utm_campaign=Badge_Grade)
[](https://developer.apple.com/swift)

[](https://github.com/graycampbell/GCCalendar/blob/master/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
- [Classes](https://graycampbell.github.io/GCCalendar/Classes.html)
- [GCCalendarView](https://graycampbell.github.io/GCCalendar/Classes/GCCalendarView.html)- [Enums](https://graycampbell.github.io/GCCalendar/Enums.html)
- [GCCalendarDisplayMode](https://graycampbell.github.io/GCCalendar/Enums/GCCalendarDisplayMode.html)- [Protocols](https://graycampbell.github.io/GCCalendar/Protocols.html)
- [GCCalendarViewDelegate](https://graycampbell.github.io/GCCalendar/Protocols/GCCalendarViewDelegate.html)### License
GCCalendar is available under the MIT license. See the [LICENSE](https://github.com/graycampbell/GCCalendar/blob/master/LICENSE) file for more info.