{"repo":"mmick66/CalendarView","free":true,"listed":false,"github":"https://github.com/mmick66/CalendarView","clone":"git clone https://github.com/mmick66/CalendarView.git","description":"An Easy to Use Calendar for iOS (Swift 5.0)","language":"Swift","stars":630,"topics":["calendar","calendar-component","calendar-view","calendarview","swift","utc","date","datepicker","date-picker","datetime"],"license":"MIT","category":"productivity","readme_excerpt":"This is an easy to use, \"just drag and drop it in your code\" type of calendar for iOS. It supports both vertical and horizontal scrolling, as well as native calendar events . Requirements iOS 8.0+ XCode 9.0+ Swift 4.2 Installation CocoaPods Carthage Add this to your Cartfile, and then run carthage update : Swift Package Manager Go to Project - Swift Packages and add the repository: Add this to your Package.swift: Manual Just the files from the CalendarView/ subfolder to your project. Setup The calendar is a UIView and can be added either programmatically or via a XIB/Storyboard. If doing the latter, make sure that the Module is selected to be 'KDCalendar' . It needs a delegate and data source that comply with: The data source will provide the start date and the end date of the calendar. The methods have a default implementation that will return Date() resulting in a single-page calendar displaying the current month. The delegate responds to events such as scrolling and the selection of specific dates. Note: The dates should be in UTC (same as GMT) How to Use You would want to implement the delegate functions inside your view controller as they appear in the example project. Say you want to be able to scroll 3 months into the past, then: You probably still want the calendar to open in today's date, so in this case do: Say you want tomorrow to be selected for some reason: Selecting and Deselecting Dates The calendar supports the selection of multiple dates. You can select a dat","default_branch":null,"files":null,"tree":[],"storefront":"/r/mmick66","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mmick66/CalendarView/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}