FreshDate 0.1.0

FreshDate 0.1.0

Maintained by Amir Shayegh.



FreshDate 0.1.0

  • By
  • amirshayegh

FreshDate

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod 'FreshDate'

Usage

  1. Import the library
import UIKit
import FreshDate

class ViewController: UIViewController {
}
  1. Setup
  • Picker between today and 100 years from now:
let datePicker = FreshDate()
datePicker.setup() {date in
	// process result
	print("\(date)")
}
  • Picker with minimum and maximum dates:
datePicker.setup(min: minDate, max: maxDate) { (date) in
	// process result
	print("\(date)")
}
  1. Display
  • Screen Center:
datePicker.display(in: self)
  • Or as Popover:
datePicker.displayPopOver(on: button, in: self)

Author

amirshayegh, [email protected]

License

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