epc

EPCalendarPicker

Colourful calendar for iOS written in Swift

Showing:

Popularity

Downloads/wk

0

GitHub Stars

345

Maintenance

Last Commit

4yrs ago

Contributors

4

Package

Dependencies

0

License

MIT

Categories

Readme

EPCalendarPicker

EPCalendarPicker

Colorful calendar component for iOS written in Swift

Platform Cocoapods Compatible Swift 3.0 CI Status License Twitter: @HaveYouMetPrabu

Preview

Screenshot Screenshot

Installation

CocoaPods

EPCalendarPicker is available on CocoaPods. Just add the following to your project Podfile:

pod 'EPCalendarPicker'
use_frameworks!

Manual Installation

Just drag and drop the EPCalendarPicker folder into your project

Demo

Stream the demo of this example in browser using Appetize.io

Features

EPcalendarPicker provides lot of features which lets you customize the picker

  1. Single selection and multiselection option
  2. Customize the date colors in the picker
  3. Today Indication and Scrolling to today
  4. Delegates that return the selected dates
  5. Ability to set the starting and ending year of the calendar

Initialization

You can init the picker as follows

    let calendarPicker = EPCalendarPicker(startYear: 2015, endYear: 2017, multiSelection: true, selectedDates: nil)
    calendarPicker.calendarDelegate = self
    let navigationController = UINavigationController(rootViewController: calendarPicker)
    self.presentViewController(navigationController, animated: true, completion: nil)   

Properties

NameDescription
tintColorTintcolor of the navigationBar bar buttons
weekdayTintColorWeekday title and date color
weekendTintColorWeekend title and date color
todayTintColorToday bar button the today's date color
dateSelectionColorSelected date color
monthTitleColorMonth title color
multiSelectEnabledBoolean value indicating whether multiselection enabled or not
calendarDelegateDelegate
startYearStarting year of the calendar
endYearEnding year of the calendar
startDateDates previous to this startDate cannot be selected
highlightsTodayBoolean that highlights the today date
hideDaysFromOtherMonthHides the days of other months with empty spaces
backgroundImageBackground Image of the calendar
backgroundColorBackground Color of the Calendar
dayDisabledTintColorDisabled day tint color

Delegates

EPCalendarPicker provides you three delegates for getting the callbacks on the picker

optional    func epCalendarPicker(_: EPCalendarPicker, didCancel error : NSError)
optional    func epCalendarPicker(_: EPCalendarPicker, didSelectDate date : NSDate)
optional    func epCalendarPicker(_: EPCalendarPicker, didSelectMultipleDate dates : [NSDate])

Credits

Thanks to Stefan Sturm for this super extensions to this component

Walkthrough

Walkthrough

License

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

Contributors

@ipraba

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100