Skip to content

Latest commit

 

History

History
69 lines (58 loc) · 2.31 KB

README.md

File metadata and controls

69 lines (58 loc) · 2.31 KB

Pai

BuddyBuild Build Status CocoaPods Compatible Carthage Compatible

Swift Xcode MIT Contributions Welcome

Requirements

iOS 9 or later

Installation

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.

Usage

PaiCalendarDataSource

// MARK: - PaiCalendarDataSource

func calendarDateEvents(in calendar: MonthCollectionView) -> [PaiDateEvent] {
    return events
}

PaiCalendarDelegate

// 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.
}

License

Pai is released under the MIT License.