Skip to content

HaeSeongPark/samplecocoapod

Repository files navigation

samplecocoapod

CalendarView framework written in siwft for mac os

usage

Initialize the Calendar View

  let calendarView = CalendarView()

Overriding Preferences

var preferences = HNCalendarView.Preferences()
preferences.calendar.backgroundColor = NSColor.grayColor()
preferences.calendar.textColor = NSColor.whiteColor()

preferences.date.circleBackgroundColor = NSColor.yellowColor()
preferences.date.dotColor = NSColor.greenColor()

HNCalendarView.globalPreferences = preferences

Add Calendar to the view hierarchy

  addChildViewController(calendarView)
  calendarView.view.frame = containerView.frame
  view.addSubview(calendarView.view)

Set the calendar properties

  calendarView.counts = generageCounts()
  calendarView.selectedDate = Date()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors