AxisContribution
A library that expresses a github contribution calendar through an array of dates. Supports iOS and macOS.
Install / Use
/learn @jasudev/AxisContributionREADME
AxisContribution for SwiftUI
A library that expresses a github contribution calendar through an array of dates. Supports iOS and macOS.
Screenshot
|Horizontal|Vertical| |:---:|:---:| |<img src="Markdown/Horizontal.png">|<img src="Markdown/Vertical.png">| |<img src="Markdown/Horizontal_heart.png">|<img src="Markdown/Vertical_heart.png">|
https://user-images.githubusercontent.com/1617304/155326706-f3c7400a-797c-44a0-8dcf-3e113b9943cc.mov
Example
https://fabulaapp.page.link/231
Usages
/// Initializes `ACConstant`
/// - Parameters:
/// - fromDate: The start date to display the list of contributions. The default value is `1 year from today.`.
/// - toDate: The end date to display the list of contributions. The default value is `today`.
/// - spacing: The spacing in the row view showing the list of contributions. The default value is `4`.
/// - levelSpacing: A number that separates units between contribution levels. The default value is `3`.
/// - axisMode: The axis mode of the component. The default value is `.horizontal`.
/// - font: The font used for text. The default value is `.system(size: 9)`.
AxisContribution(constant: .init(), source: [Date(), Date()])
// or
AxisContribution(constant: .init(), source: [Date(), Date()]) { indexSet, data in
Image(systemName: "heart.fill")
.foregroundColor(Color(hex: colorScheme == .dark ? 0x171B21 : 0xF0F0F0))
.font(.system(size: rowSize))
.frame(width: rowSize, height: rowSize)
} foreground: { indexSet, data in
Image(systemName: "heart.fill")
.foregroundColor(Color(hex: 0x6CD164))
.font(.system(size: rowSize))
.frame(width: rowSize, height: rowSize)
}
Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. Once you have your Swift package set up, adding AxisContribution as a dependency is as easy as adding it to the dependencies value of your Package.swift.
dependencies: [
.package(url: "https://github.com/jasudev/AxisContribution.git", .branch("main"))
]
Contact
instagram : @dev.fabula
email : dev.fabula@gmail.com
License
AxisContribution is available under the MIT license. See the LICENSE file for more info.
Related Skills
apple-reminders
346.8kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
346.8kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
oracle
346.8kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
xurl
346.8kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
