ASCalendar alternatives and similar libraries
Based on the "Calendar" category.
Alternatively, view ASCalendar alternatives based on common mentions on social networks and blogs.
-
JTAppleCalendar
The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable -
MBCalendarKit
An open source calendar framework for iOS, with support for customization, IBDesignable, Autolayout, and more. -
RCalendarPicker
RCalendarPicker A date picker control, Calendar calendar control, select control, calendar, date selection, the clock selection control. ζ₯εζ§δ»Ά οΌζ₯ειζ©ζ§δ»ΆοΌζ₯εοΌζ₯ζιζ©οΌζΆιιζ©ζ§δ»Ά -
PTEventView
An Event View based on Apple's Event Detail View. Written in Swift 3. Supports ARC, Autolayout and editing via StoryBoard.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ASCalendar or a related project?
README
ASCalendar
Installation
CocoaPods
You can use CocoaPods to install ASCalendar
by adding it to your Podfile
:
platform :ios, '8.0'
use_frameworks!
pod 'ASCalendar'
To get the full benefits import ASCalendar
wherever you import UIKit
import UIKit
import ASCalendar
Manually
- Download and drop
/Example/Calendar
folder in your project. - Congratulations!
implementation :
- To show a calendar in your current window simply add:
swift let calendar = ASCalendar() calendar.showCalendarAsLayer()
- To check what day the user has selected use the ASCalendarDelegate (like in the example):
swift calendar.delegate = self
swift func calendarSelect(day: Int, week: Int, month: Int, year: Int) { NSLog("%d-%d-%d (%d)", day, month, year, week) }
-to close the calendar the user can tap outside it (like a popover) or you can manually close it calling:swift calendar.hideCalendar()
### settings : - By defaul ASCalendar is set to give a day selection but you can also switch to week mode (in any time):
swift calendar.setSelectionStyle(.Week)
- As italian I'm used to start the week with monday, but you can set to display sunday as first day in this way:
swift calendar.setSundayFirstWeekDay(true) //or calendar.setMondayFirstWeekDay(false)
- to set a specific month-year to show, you can use at any time:
swift //month: 06, year: 2035 calendar.setcurrentPage(6, year: 2035)
- you can also set a specific interval in witch the user can select a day, disabling all the other days:
swift //the range will start by day:15 month: 02, year: 2018 calendar.setFirstSelectableDate(15, month: 2, year: 2018) //the upper limit of the selectable range will be day:20 month: 02, year: 2018 calendar.setLastSelectableDate(20, month: 2, year: 2018)
- than, of course, you can set a specific day/week manually in this way:
swift //set day or week selected by day:13 month: 04, year: 2044 calendar.setSelectedDay(13, month: 04, year: 2044)
### customisations : - You can customize the colors, the fonts, and set specific selection sizes of this calendar. In general the customisations functions start by "calendar.configure...". You should customize the calendar before showing it.
func configureHeader(backgroundColor: UIColor?, textColor: UIColor?, textFont : UIFont?, separationLineColor: UIColor?)
func configureBodyHeader(backgroundColor: UIColor?, textColor: UIColor?, textFont: UIFont?, separationLineColor: UIColor?)
func configureBody(backgroundColor: UIColor?, monthTextColor: UIColor?, monthTextFont: UIFont?, separationLineColor: UIColor?)
func configureDay(selectableTextColor: UIColor?, unselectableTextColor: UIColor?, selectedTextColor: UIColor?, TextFont: UIFont?)
func configureSelections(selectionColor: UIColor?, daySelectionSize: CGFloat?, weekSelectionHeight: CGFloat?)
- There are also 4 defaults theme you can easily set with :
swift calendar.theme.defaults(index)
### licence :
Copyright (c) 2016 Alberto Scampini
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*Note that all licence references and agreements mentioned in the ASCalendar README section above
are relevant to that project's source code only.