CalendarView framework written in Swift for OS X
let calendarView = HNCalendarView()
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
addChildViewController(calendarView)
calendarView.view.frame = containerView.frame
view.addSubview(calendarView.view)
calendarView.counts = generateCounts()
calendarView.selectedDate = NSDate()