{"id":20664733,"url":"https://github.com/jasudev/axiscontribution","last_synced_at":"2025-06-13T19:05:28.440Z","repository":{"id":107699709,"uuid":"462744693","full_name":"jasudev/AxisContribution","owner":"jasudev","description":"A library that expresses a github contribution calendar through an array of dates. Supports iOS and macOS.","archived":false,"fork":false,"pushed_at":"2024-04-02T17:37:36.000Z","size":499,"stargazers_count":127,"open_issues_count":6,"forks_count":26,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-13T19:05:01.864Z","etag":null,"topics":["calendar","contributions","github","github-contribution-graph","github-contributions","ios","macos","swift","swiftui","swiftui-contributions"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasudev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-23T13:23:12.000Z","updated_at":"2025-06-09T12:10:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d735b3b0-12a0-4665-aa23-9ab67a82321d","html_url":"https://github.com/jasudev/AxisContribution","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jasudev/AxisContribution","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FAxisContribution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FAxisContribution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FAxisContribution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FAxisContribution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasudev","download_url":"https://codeload.github.com/jasudev/AxisContribution/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FAxisContribution/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259704410,"owners_count":22898858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","contributions","github","github-contribution-graph","github-contributions","ios","macos","swift","swiftui","swiftui-contributions"],"created_at":"2024-11-16T19:25:57.555Z","updated_at":"2025-06-13T19:05:28.428Z","avatar_url":"https://github.com/jasudev.png","language":"Swift","readme":"# **AxisContribution for SwiftUI**\nA library that expresses a github contribution calendar through an array of dates. Supports iOS and macOS.\n\n[![Platforms](https://img.shields.io/badge/Platforms-iOS%20%7C%20macOS-blue?style=flat-square)](https://developer.apple.com/macOS)\n[![iOS](https://img.shields.io/badge/iOS-14.0-blue.svg)](https://developer.apple.com/iOS)\n[![macOS](https://img.shields.io/badge/macOS-11.0-blue.svg)](https://developer.apple.com/macOS)\n[![instagram](https://img.shields.io/badge/instagram-@dev.fabula-orange.svg?style=flat-square)](https://www.instagram.com/dev.fabula)\n[![SPM](https://img.shields.io/badge/SPM-compatible-red?style=flat-square)](https://developer.apple.com/documentation/swift_packages/package/)\n[![MIT](https://img.shields.io/badge/licenses-MIT-red.svg)](https://opensource.org/licenses/MIT)  \n\n## Screenshot\n|Horizontal|Vertical|\n|:---:|:---:|\n|\u003cimg src=\"Markdown/Horizontal.png\"\u003e|\u003cimg src=\"Markdown/Vertical.png\"\u003e|\n|\u003cimg src=\"Markdown/Horizontal_heart.png\"\u003e|\u003cimg src=\"Markdown/Vertical_heart.png\"\u003e|\n\nhttps://user-images.githubusercontent.com/1617304/155326706-f3c7400a-797c-44a0-8dcf-3e113b9943cc.mov\n\n## Example\n[https://fabulaapp.page.link/231](https://fabulaapp.page.link/231)\n\n## Usages\n```swift\n/// Initializes `ACConstant`\n/// - Parameters:\n///   - fromDate: The start date to display the list of contributions. The default value is `1 year from today.`.\n///   - toDate: The end date to display the list of contributions. The default value is `today`.\n///   - spacing: The spacing in the row view showing the list of contributions. The default value is `4`.\n///   - levelSpacing: A number that separates units between contribution levels. The default value is `3`.\n///   - axisMode: The axis mode of the component. The default value is `.horizontal`.\n///   - font: The font used for text. The default value is `.system(size: 9)`.\n\nAxisContribution(constant: .init(), source: [Date(), Date()])\n// or\nAxisContribution(constant: .init(), source: [Date(), Date()]) { indexSet, data in\n    Image(systemName: \"heart.fill\")\n      .foregroundColor(Color(hex: colorScheme == .dark ? 0x171B21 : 0xF0F0F0))\n      .font(.system(size: rowSize))\n      .frame(width: rowSize, height: rowSize)\n} foreground: { indexSet, data in\n    Image(systemName: \"heart.fill\")\n      .foregroundColor(Color(hex: 0x6CD164))\n      .font(.system(size: rowSize))\n      .frame(width: rowSize, height: rowSize)\n}\n```\n  \n## Swift Package Manager\nThe 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.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/jasudev/AxisContribution.git\", .branch(\"main\"))\n]\n```\n\n## Contact\ninstagram : [@dev.fabula](https://www.instagram.com/dev.fabula)  \nemail : [dev.fabula@gmail.com](mailto:dev.fabula@gmail.com)\n\n## License\nAxisContribution is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasudev%2Faxiscontribution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasudev%2Faxiscontribution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasudev%2Faxiscontribution/lists"}