CalendarMenu
Customizable calendar (Date range picker) menu for iOS (CocoaPods)
- UIControl subclass for date / week / month selection
- I18n / i10n aware
- Themable
Example
Run the example project:
Usage
CalendarMenu is available through CocoaPods. To install
it, simply add the following line to your Podfile:
Integration
Import CalendarMenu
:
Define a CalendarMenu
view IBOutlet
(here, named cMenu
):
Add a DateField
object that will handle the target:
Then the related @objc
method that will call the showCalendarMenu()
method:
The selected date can be handled by .valueChanged
action:
Theming
Customizing fonts and colors is as simple as setting a few properties.
Let's take an example by changing date interval font and button tint color:
Property | Description |
---|---|
bgColor |
View background color |
fontDateInterval |
Date interval label font |
segmentControlTintColor |
Segment control tint color |
selectedSegmentTintColor |
Segment control selected item color |
buttonTintColor |
Button tint color |
buttonBorderColor |
Button border color |
Localization
If your project is localized, you can edit Localizable.strings
to customize strings: