Skip to content

Commit

Permalink
Merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
graycampbell committed Mar 29, 2017
2 parents 1e09b51 + 1986fe8 commit 6dbee9f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Release](https://img.shields.io/github/release/graycampbell/GCCalendar.svg)](https://github.com/graycampbell/GCCalendar/releases/latest)
[![CocoaPods](https://img.shields.io/cocoapods/v/GCCalendar.svg)](https://cocoapods.org/pods/GCCalendar)
[![Documentation](https://img.shields.io/cocoapods/metrics/doc-percent/GCCalendar.svg)](http://cocoadocs.org/docsets/GCCalendar)
[![Swift 3 Compatible](https://img.shields.io/badge/Swift_3-compatible-4BC51D.svg?style=flat)](https://developer.apple.com/swift)
![Platform](https://img.shields.io/cocoapods/p/GCCalendar.svg?style=flat)
[![License](https://img.shields.io/cocoapods/l/GCCalendar.svg)](https://github.com/graycampbell/GCCalendar/blob/master/LICENSE)

Expand All @@ -14,12 +15,25 @@ pod 'GCCalendar'

### Implementation

1. Add `GCCalendar` to your file's import statements.
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.
### Documentation
Expand All @@ -32,3 +46,7 @@ pod 'GCCalendar'
- [Protocols](http://cocoadocs.org/docsets/GCCalendar/2.0.1/Protocols.html)
- [GCCalendarViewDelegate](http://cocoadocs.org/docsets/GCCalendar/2.0.1/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.

0 comments on commit 6dbee9f

Please sign in to comment.