Git Product home page Git Product logo

epcalendarpicker's Introduction

EPCalendarPicker

EPCalendarPicker

Colorful calendar component for iOS written in Swift

Platform Cocoapods Compatible Swift 2.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

Name Description
tintColor Tintcolor of the navigationBar bar buttons
weekdayTintColor Weekday title and date color
weekendTintColor Weekend title and date color
todayTintColor Today bar button the today's date color
dateSelectionColor Selected date color
monthTitleColor Month title color
multiSelectEnabled Boolean value indicating whether multiselection enabled or not
calendarDelegate Delegate
startYear Starting year of the calendar
endYear Ending year of the calendar
startDate Dates previous to this startDate cannot be selected
highlightsToday Boolean that highlights the today date
hideDaysFromOtherMonth Hides the days of other months with empty spaces
backgroundImage Background Image of the calendar
backgroundColor Background Color of the Calendar
dayDisabledTintColor Disabled 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

epcalendarpicker's People

Contributors

ipraba avatar urkman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.