AMACalendar 0.0.2

AMACalendar 0.0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2016
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Ama.Qiu.



  • By
  • Ama.Qiu
AMACalendar
This is a Chinese Calendar.
The project AMACalendar is for Bmemo to write and it refer to the Daysquare. So, the need of Bmemo, the support of the lunar calendar.

Swift Package Manager

Requirements

  • Xcode 8+
  • swift 3.0+
  • iOS 9.0+

Usage

let calendar = calendarView(frame: CGRect(x: 10,
                                          y: 50, 
                                      width: UIScreen.main.bounds.width - 20, 
                                     height: 280))

calendar.addTarget(self, action: #selector(calendarChange), for: .valueChanged)
view.addSubview(calendar)
@objc fileprivate func calendarChange(view: calendarView) {
    let formatter = DateFormatter()
    formatter.dateFormat = "YYYY-MM-dd"
    print(formatter.string(from: (view.selectedDate?.0)!), view.selectedDate!.1)
}

Installation

  • Cocoapods
pod 'AMACalendar', ~> 0.0.1