Calendar Heatmap alternatives and similar libraries
Based on the "Calendar" category.
Alternatively, view Calendar Heatmap alternatives based on common mentions on social networks and blogs.
-
FSCalendar
A fully customizable iOS calendar library, compatible with Objective-C and Swift -
JTAppleCalendar
The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable -
CVCalendar
A custom visual calendar for iOS 8+ written in Swift (>= 4.0). -
DateTimePicker
A nicer iOS UI component for picking date and time -
RSDayFlow
iOS 7+ Calendar (Date Picker) with Infinite Scrolling. -
Calendar
A set of views and controllers for displaying and scheduling events on iOS -
GLCalendarView
A fully customizable calendar view acting as a date range picker -
MBCalendarKit
An open source calendar framework for iOS, with support for customization, IBDesignable, Autolayout, and more. -
ElegantCalendar
The elegant full screen calendar missed in SwiftUI. -
KDCalendarView
An Easy to Use Calendar for iOS (Swift 5.0) -
KVKCalendar
A most fully customization calendar for Apple platforms π -
CrispyCalendar
An easy-to-use, fully customizable and extensible calendar for your app -
ASCalendar
A calendar control for iOS written in swift with mvvm pattern -
RCalendarPicker
RCalendarPicker A date picker control, Calendar calendar control, select control, calendar, date selection, the clock selection control. ζ₯εζ§δ»Ά οΌζ₯ειζ©ζ§δ»ΆοΌζ₯εοΌζ₯ζιζ©οΌζΆιιζ©ζ§δ»Ά -
NWCalendarView
An availability calendar implementation for iOS -
PTEventView
An Event View based on Apple's Event Detail View. Written in Swift 3. Supports ARC, Autolayout and editing via StoryBoard. -
GDPersianCalendar
Calendar component with RTL languages written in swift
Appwrite - The Open Source Firebase alternative introduces iOS support
* 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 Calendar Heatmap or a related project?
README
Calendar Heatmap
Introduction
CalendarHeatmap
is a calendar based heatmap which presenting a time series of data points in colors, inspired by Github contribution chart, and written in Swift.
Installation
CalendarHeatmap is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CalendarHeatmap'
CalendarHeatmap is also availabele through Carthage, by adding it to your Cartfile:
github "Zacharysp/CalendarHeatmap"
And finally CalendarHeatmap can also be installed using the Swift Package Manager:
Usage
// minimum usage.
let startDate = Date()
let calendarHeatmap = CalendarHeatmap(startDate: startDate)
calendarHeatmap.delegate = self
view.addSubview(calendarHeatmap)
// provide a range of date.
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd"
let startDate = formatter.date(from: "2019-10-18")
let endDate = formatter.date(from: "2020-02-14")
// default endDate is now.
let calendarHeatmap = CalendarHeatmap(startDate: startDate, endDate: endDate)
// you could custom the heatmap by using CalendarHeatmapConfig.
let config = CalendarHeatmapConfig()
let calendarHeatmap = CalendarHeatmap(config: config, startDate: Date())
// reload the heatmap
let calendarHeatmap = CalendarHeatmap(startDate: ...)
calendarHeatmap.reload()
// reload with new range of date.
calendarHeatmap.reload(newStartDate: ..., newEndDate: ...)
CalendarHeatmapConfig
details.
Config Key | Type | Default |
---|---|---|
backgroundColor | UIColor | UIColor.white |
contentRightInset | CGFloat | 60 |
itemColor | UIColor | UIColor.clear |
itemSide | CGFloat | 20 |
interitemSpacing | CGFloat | 4 |
lineSpacing | CGFloat | 4 |
weekDayColor | UIColor | UIColor.black |
weekDayStrings | [String] | DateFormatter().shortWeekdaySymbols.map{ \$0.capitalized } |
weekDayFont | UIFont | UIFont.systemFont(ofSize: 12, weight: .medium) |
weekDayWidth | CGFloat | 30 |
weekDayStandard | Enum | USandCanada |
monthColor | UIColor | UIColor.black |
monthStrings | [String] | DateFormatter().monthSymbols |
monthFont | UIFont | UIFont.systemFont(ofSize: 12, weight: .medium) |
monthHeight | CGFloat | 20 |
Starts Monday or Sunday.
var config = CalendarHeatmapConfig()
config.weekDayStandard = .USandCanada // starts Sunday. (default)
config.weekDayStandard = .International // starts Monday
Scroll the calendar programmatically
calendarHeatMap.scrollTo(date: Date(...), at: .right, animated: false)
Make your ViewController
adopts CalendarHeatmapDelegate
// color for date
func colorFor(dateComponents: DateComponents) -> UIColor {
guard let year = dateComponents.year,
let month = dateComponents.month,
let day = dateComponents.day else { return .clear}
// manage your color based on date here
let yourColor = {...}
return yourColor
}
// (optional) selection at date
func didSelectedAt(dateComponents: DateComponents) {
guard let year = dateComponents.year,
let month = dateComponents.month,
let day = dateComponents.day else { return }
// do something here
}
// (optional) notify finish loading the calendar
func finishLoadCalendar() {
// do something here
}
Demo
Take a look at Example
, to run the example project, clone the repo, and run pod install
from the Example directory first.
Author
Zacharysp, [email protected]
License
CalendarHeatmap is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the Calendar Heatmap README section above
are relevant to that project's source code only.