CalendarView framework written in Swift for OS X
let calendarView = THCalendarView() var preferences = THCalendarView.globalPreferences preferences.calendar.textColor = NSColor.darkGray preferences.calendar.cellColorDefault = NSColor(white: 0.0, alpha: 0.1) preferences.calendar.cellColorToday = NSColor.darkGray preferences.calendar.borderColor = NSColor.red preferences.calendar.backgroundColors = NSColor.darkGray preferences.calendar.beginWeek = .monday preferences.date.circleBackgroundColor = NSColor.yellow preferences.date.dotColor = #colorLiteral(red: 0, green: 0.9768045545, blue: 0, alpha: 1) THCalendarView.globalPreferences = preferences addChildViewController(calendarView) calendarView.view.frame = containerView.frame view.addSubview(calendarView.view) calendarView.counts = generateCounts() calendarView.selectedDate = Date() 