TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Dec 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Ama.Qiu.
AMACalendar
is for Bmemo
to write and it refer to the Daysquare. So, the need of Bmemo
, the support of the lunar calendar.Requirements
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
pod 'AMACalendar', ~> 0.0.1