Latest 0.1.0
License MIT
Platforms ios 8.0

CI Status


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

Here’s what it looks like:

alt text


It’s as simple as:

let dateRangePickerViewController = CalendarDateRangePickerViewController(collectionViewLayout: UICollectionViewFlowLayout())
dateRangePickerViewController.delegate = self
let navigationController = UINavigationController(rootViewController: dateRangePickerViewController)
self.navigationController?.present(navigationController, animated: true, completion: nil)

Just implement the delegate methods:

protocol CalendarDateRangePickerViewControllerDelegate {
    func didTapCancel()
    func didTapDoneWithDateRange(startDate: Date!, endDate: Date!)

You can also set additional options to override the defaults:

dateRangePickerViewController.minimumDate = Date()
dateRangePickerViewController.maximumDate = .year, value: 2, to: Date())
dateRangePickerViewController.selectedStartDate = Date()
dateRangePickerViewController.selectedEndDate = .day, value: 10, to: Date())


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

pod 'CalendarDateRangePickerViewController'


miraan, [email protected]


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

Latest podspec

    "name": "CalendarDateRangePickerViewController",
    "version": "0.1.0",
    "summary": "A calendar date range picker view controller in Swift for iOS.",
    "description": "This is a calendar date range picker view controller written in Swift for iOS. The typical use case is where you want the user to input a date range, i.e. a start date and an end date. This view controller allows this in an intuitive way, and is easy to use by implementing the delegate methods. See the example project for a taste.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "miraan": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "CalendarDateRangePickerViewController/Classes/**/*",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This