Version 1.0.0
I really like Datepicker of Android version and hate the default DatePicker of iOS. I searched on the internet a library which have layout look like Android verion, but I couldn't find anything.
So I decided spend two dates in my life to creating something like that for me and someone who hate the default Datepicker of iOS
I hope you enjoy it.
One more heads up: As Swift evolves, if you are not using the latest Swift compiler, you shouldn't check out the master branch. Instead, you should go to the release page and pick up whatever suits you.
- Xcode 10.2 / Swift 5.0 (master branch)
- iOS >= 8.0 (Use as an Embedded Framework)
- macOS >= 10.11
An amazing feature of this library now, for Android, iOS, tvOS and macOS, is the time it saves you when developing for both platforms, as the learning curve is singleton- it happens only once, and the code stays very similar so developers don't have to go around and re-invent the app to produce the same output with a different library. (And that's not even considering the fact that there's not really another good choice out there currently...)
- Add it to your podfile:
pod 'MultipleDatePicker', :git => 'https://github.com/tutrieuchau/MultipleDatePicker.git'
@import MultipleDatePicker
- In your view set UIClass to
MultipleDatePicker
- Handle date picker
- Handle picker done in your viewcontroller by extend
MultipleDatePickerDelegate
- Override hook
func onSelected(start: Date?, end: Date?)
if you select single dateend: Date?
will be nil
- Handle picker done in your viewcontroller by extend
Currently, It has a lot of bugs and issues. I will fix it as soon as i can. If you want customize it. Please contact me by email [email protected] I will help you customize it. You just need to send me a cup of coffy for that.@(^-^)@
Screenshots are currently taken from the original repository, as they render exactly the same :-)
Copyright 2019 TrieuChau and SaiGonApp Team
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.