Latest 2.2.0
Homepage https://github.com/noxt/ScrollableDatepicker
License MIT
Platforms ios 9.0, requires ARC
Authors

Swift 4.2 compatible
CocoaPods compatible
Platform iOSLicense: MIT

demo

Getting Started

An example ViewController is included demonstrating ScrollableDatepicker’s functionality.

Installation

CocoaPods

Add the following line to your Podfile:

pod 'ScrollableDatepicker', '~> 2.2'

Then run the following in the same directory as your Podfile:

pod install

Manual

Clone the repo and drag files from Sources folder into your Xcode project.

Configuration

Day Style Configuration

You can customize following properties for each state (default, weekend, selected):

  • Font & Color for day, week day and month
  • Background Color for cell
  • Selector Color

Depending on the state of the cell, its style is composed of the default and appropriate styles.

Data Configuration

  • Number of dates in one screen

Example

demo

var configuration = Configuration()

// weekend customization
configuration.weekendDayStyle.dateTextColor = UIColor(red: 242.0/255.0, green: 93.0/255.0, blue: 28.0/255.0, alpha: 1.0)
configuration.weekendDayStyle.dateTextFont = UIFont.boldSystemFont(ofSize: 20)
configuration.weekendDayStyle.weekDayTextColor = UIColor(red: 242.0/255.0, green: 93.0/255.0, blue: 28.0/255.0, alpha: 1.0)

// selected date customization
configuration.selectedDayStyle.backgroundColor = UIColor(white: 0.9, alpha: 1)
configuration.daySizeCalculation = .numberOfVisibleItems(5)

datepicker.configuration = configuration

Requirements

  • iOS 9.0
  • Xcode 8.0

License

ScrollableDatepicker is available under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "ScrollableDatepicker",
    "version": "2.2.0",
    "summary": "Yet another datepicker for iOS",
    "homepage": "https://github.com/noxt/ScrollableDatepicker",
    "screenshots": "https://github.com/noxt/ScrollableDatepicker/blob/master/Screenshots/screen.png?raw=true",
    "license": "MIT",
    "authors": {
        "Dmitry Ivanenko": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/noxt/ScrollableDatepicker.git",
        "tag": "2.2.0"
    },
    "source_files": "Sources",
    "resource_bundles": {
        "ScrollableDatepicker": [
            "Sources/*.xib"
        ]
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This