Latest 0.0.4
Homepage https://github.com/RobertDresler/CalendarFoundation
License MIT
Platforms ios 11.0
Authors

Simple date selector for iOS apps based on Swift. Let user select certain day from calendar (or not).


Install

CocoaPods

pod 'CalendarFoundation'

Usage

import CalendarFoundation

// Initialize new instance of controller with `dateSelectedBlock`
let calendarVC = CalendarViewController(dateSelectedBlock: { [weak self] date in
    if let date = date {
        // work with received `Date`
    } else {
        // user selected option "Remove date" = `date` is `nil`
    }
})

// From you `UIViewController` present it
present(calendarVC, animated: true)

UX

  • Swipe for changing month
  • Tap on day to select Date
  • Tap to Remove date to return nil
  • Tap anywhere to dismiss calendar

Preview

Screen Shot 2019-04-10 at 13 19 40

Latest podspec

{
    "name": "CalendarFoundation",
    "version": "0.0.4",
    "summary": "Simple calendar",
    "platforms": {
        "ios": "11.0"
    },
    "swift_versions": "4.2",
    "description": "Simple calendar for Swift projects",
    "homepage": "https://github.com/RobertDresler/CalendarFoundation",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "RobertDresler": "[email protected]"
    },
    "social_media_url": "https://twitter.com/rdreslerjr",
    "source": {
        "git": "https://github.com/RobertDresler/CalendarFoundation.git",
        "tag": "0.0.4"
    },
    "source_files": "CalendarFoundation/**/*.{swift}",
    "resources": "CalendarFoundation/**/*.{png,jpeg,jpg,storyboard,xib,xcassets}"
}

Pin It on Pinterest

Share This