Skip to content

lufzi/Pai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

📅 Calendar view library for iOS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published