iOS 9 or later
To integrate Pai using CocoaPods, add the following to your Podfile:
pod 'Pai'
To integrate Pai using Carthage, add the following to your Cartfile:
github 'lkmfz/Pai'
Run carthage update
to build the framework and drag the built Ubud.framework
into your Xcode project.
// MARK: - PaiCalendarDataSource
func calendarDateEvents(in calendar: MonthCollectionView) -> [PaiDateEvent] {
return events
}
// MARK: - PaiCalendarDelegate
func calendarDateDidSelect(in calendar: MonthCollectionView, at index: Int, date: PaiDate) {
/// Do anything on selected date.
}
func calendarMonthViewDidScroll(in calendar: MonthCollectionView, at index: Int, month: String, year: String) {
/// Do anything scrolling the monthly view and changing the top month content.
}
Pai is released under the MIT License.