CVCalendar requires to implement two protocols. They are CVCalendarViewDelegate and CVCalendarMenuViewDelegate. Note that the last one has exactly the same named method as the first one declares which means you have to implement only required methods in CVCalendarViewDelegate and set your controller as a delegate implementing both protocols.
These protocols stand for getting the data for building CVCalendarView and CVCalendarMenuView. So do not forget to implement them.
A long story in short or customizable properties:
- Showing weekdays out
- Moving dot markers on highlighting
- Showing dot markers on a specific day view
- Dot marker’s color, offset and size
- Space between week views and day views
- Day view’s label properties (color, background, alpha + different states (normal/highlighted))
- Day view selection
- Presented date update
- Animations on (de)selecting day views
Finally we’re going to customize properties. To make this possible you have to implement approptiate protocols. (You can see presented protocols and short descriptions in the Architecture Section). Open your Storyboard and do a right-click on CVCalendarView, you’ll see the window with outlets and there are a few ones we actually need. Take a look at the picture to make sure you’re doing everything properly.
Now depending on what you’d like to change you should implement a particular protocol providing methods for customizing that stuff. For delegates’ API description take a look at [this page
Do NOT forget to connect a particular outlet with your ViewController if you’re implementing its protocol.
NOTE: CVCalendar defines default values for all the customizable properties (i.e. for ones defined in the presented protocols). Thus far if you don’t implement protocols yourself the calendar will behave as it was initially designed.