Skip to content
SwiftUI Simple Calendar / Date Picker for iOS
Swift
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
RKCalendar.xcodeproj Adding Demo Images Jul 14, 2019
RKCalendar Fixes for Xcode 11 beta 4 changes Jul 28, 2019
LICENSE.txt Adding License Jul 14, 2019
README.md Update README.md Jul 14, 2019

README.md

RKCalendar

SwiftUI Simple Calendar / Date Picker for iOS

Light Mode

demo app first screenshot demo app first screenshot

Dark Mode

demo app first screenshot demo app first screenshot

⚠️ WARNING ⚠️ This is an early version of this library that requires Swift 5.1 and Xcode 11 that are currently still in beta.

Requirements

  • iOS 13.0+
  • Xcode 11+
  • Swift 5.1+

Installation

You can integrate RKCalendar into your project manually.

Usage

//Provide Calendar, minimum and maximum date that can be selected

RKManager(calendar: Calendar.current, minimumDate: Date(), maximumDate: Date().addingTimeInterval(606024*365)

Single Date Selection

//Pass mode 0 to select a single date

PresentationLink(destination: RKViewController(rkManager : self.exampleOne, mode: 0), label:{ Text(getTextFromDate(date: self.exampleOne.selectedDate, mode: 0)) } )

Start and End Date Selection

//Pass mode 1 to select start date

PresentationLink(destination: RKViewController(rkManager : self.exampleTwo, mode: 1), label:{ Text(getTextFromDate(date: self.exampleTwo.startDate, mode: 1)) } )

//Pass mode 2 to select end date

PresentationLink(destination: RKViewController(rkManager : self.exampleTwo, mode: 2), label:{ Text(getTextFromDate(date: self.exampleTwo.endDate, mode: 2)) } )

License

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

You can’t perform that action at this time.