Latest 0.1.0
Homepage https://github.com/lkmfz/Pai
License MIT
Platforms ios 9.0, requires ARC
Authors

BuddyBuild
Build Status
CocoaPods Compatible
Carthage Compatible


<img src="
https://img.shields.io/badge/Swift-4-orange.svg"
alt="Swift" />


<img src="
https://img.shields.io/badge/Xcode-9-blue.svg"
alt="Xcode">


<img src="
https://img.shields.io/badge/License-MIT-red.svg"
alt="MIT">


<img src="
https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat"
alt="Contributions Welcome">


Pai

Requirements

iOS 9 or later

Installation

CocoaPods

To integrate Pai using CocoaPods, add the following to your Podfile:

pod 'Pai'

Carthage

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.

Latest podspec

{
    "name": "Pai",
    "version": "0.1.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "summary": "Calendar view library for iOS.",
    "homepage": "https://github.com/lkmfz/Pai",
    "social_media_url": "https://twitter.com/lkmfz",
    "authors": {
        "Luqman Fauzi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lkmfz/Pai.git",
        "tag": "0.1.0"
    },
    "source_files": "Pai/Sources/**/*.swift",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This