TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2016 |
SPMSupports SPM | ✗ |
Maintained by Lammert Westerhoff.
Depends on: | |
DynamicColor | ~> 2.4 |
RSDayFlow | ~> 1.4 |
SwiftDate | ~> 3.0 |
This library consists of two components that can be used on it’s own or together. One is a swipeable month picker and the other is a paging calendar date picker showing one month on each page. The month picker can be used as navigation header for the calendar date picker.
To run the example project, clone the repo, and run pod install
from the Example directory first.
You can either create a new MonthPickerView
from code or assign a view in your Storyboard with this type. After that you can assign its delegate
to receive callbacks when a month has been selected.
You can either create a new PagingDatePickerView
from code or assign a view in your Storyboard with this type. After that you can assign its delegate
to receive callbacks when it has swiped to another page (i.e. month).
There are several ways to use the month picker and paging date picker together. All that needs to happen is that the change in month of one component is communicated to the other. You can do this manually or you can do this through one of the two provided ways:
PagingDateAndMonthPickerView
to have a default layout with the month picker above the date picker.PagingDateAndMonthPickerViewControl
See the Example project for sample usages.
PagingDatePicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PagingDatePicker"
The PagingDatePicker is currently build on top of RSDayFlow and has been build in a similar style to customize it. You can set a datePickerViewDelegate
and datePickerViewDataSource
on the PagingDatePickerView
which will be propagated to the underlying RSDFDatePickerView
.
Lammert Westerhoff, [email protected]
PagingDatePicker is available under the MIT license. See the LICENSE file for more info.