Latest 0.1.1
Homepage https://github.com/kimwoohyun/WHLunarCalendar
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

WHLunarCalendar is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'WHLunarCalendar', :git => 'https://github.com/KimWooHyun/WHLunarCalendar.git', :branch => 'master'

Usage – Use storyboard

  1. Add UIView

image

  1. Add custom calss

image

  1. Import WHLunarCalendar & add delegate
ViewController.swift

import UIKit
import WHLunarCalendar

class ViewController: UIViewController {
    @IBOutlet weak var lunarCalendar: WHLunarCalendar!

    override func viewDidLoad() {
        super.viewDidLoad()
        self.lunarCalendar.delegate = self
    }
}
  1. Add event
Extension

extension ViewController: LunarCalendarDelegate{
    func lunarCalendarCellClick(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
        let cell = collectionView.cellForItem(at: indexPath) as! WHLunarCalendarCell
        print(cell.solorDay)
        print(cell.lunarDay)    // Optional
        print(cell.isLeap)      // Optional
    }
}

Author

kimwoohyun, dngus242@gmail.com

License

WHLunarCalendar is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "WHLunarCalendar",
    "version": "0.1.1",
    "summary": "A Korea Lunar Calendar",
    "description": "A swift libray Korea lunar calendar",
    "homepage": "https://github.com/kimwoohyun/WHLunarCalendar",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kimwoohyun": "dngus242@naver.com"
    },
    "source": {
        "git": "https://github.com/kimwoohyun/WHLunarCalendar.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "WHLunarCalendar/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This