Skip to content

xanadu6291/Calendar-OSX-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

[Japanese][English]

Calendar-OSX-Swift

This is a Swift conversion of Gyetván András's repository Calendar-OSX which is written in Objective-C.

dark_mode

light_mode


Description

Basic function is same as original.

Here, I describe the difference between original:

  1. Fix for crash on empty calendar cell selection.
  2. Fix for misplacing of bottom line and default selection circle.
  3. Chaned top line into bottom line. It's my favorite. ;-P
  4. Add coloring of Sunday and Saturday.
  5. Add Support for switching to dark mode.
  6. Add Japanese Holiday coloring (Using fumiyasac's CalculateCalendarLogic.swift) in Japanese localization.

Usage

Usage is same as original. In Summary:

  1. Copy all the files in the MLCalendar group to your project.

  2. MLCalendarView is subclass of NSViewController which can be used as any other view.

  3. You can change the default colors used by the calendar by the properties as follows:

    var backgroundColor: NSColor?
    var textColor: NSColor?
    var holiDayColor: NSColor?
    var saturDayColor: NSColor?
    var selectionColor: NSColor?
    var todayMarkerColor: NSColor?
    var dayMarkerColor: NSColor
  4. Off cource, Calendar-OSX-Swift have delegate same as original.

    protocol MLCalendarViewDelegate {
        func didSelectDate(selectedDate: Date)
    }

Sample Application

The Xcode project is sample of Calendar-OSX-Swift using NSPopover, same as original.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages