{"id":27938712,"url":"https://github.com/lucashoeft/lshcontributionview","last_synced_at":"2025-07-10T19:04:53.865Z","repository":{"id":56919110,"uuid":"164291154","full_name":"lucashoeft/LSHContributionView","owner":"lucashoeft","description":"Custom UIView to visualize repeating activities of a user in iOS apps","archived":false,"fork":false,"pushed_at":"2019-01-06T10:07:52.000Z","size":104,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T08:19:21.153Z","etag":null,"topics":["calendar-view","contribution-graph","contributions-calendar","gitstats","ios","swift"],"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/lucashoeft.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}},"created_at":"2019-01-06T09:01:54.000Z","updated_at":"2025-01-20T14:44:05.000Z","dependencies_parsed_at":"2022-08-20T21:50:26.050Z","dependency_job_id":null,"html_url":"https://github.com/lucashoeft/LSHContributionView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lucashoeft/LSHContributionView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucashoeft%2FLSHContributionView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucashoeft%2FLSHContributionView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucashoeft%2FLSHContributionView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucashoeft%2FLSHContributionView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucashoeft","download_url":"https://codeload.github.com/lucashoeft/LSHContributionView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucashoeft%2FLSHContributionView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264638275,"owners_count":23642138,"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-view","contribution-graph","contributions-calendar","gitstats","ios","swift"],"created_at":"2025-05-07T08:57:14.027Z","updated_at":"2025-07-10T19:04:53.838Z","avatar_url":"https://github.com/lucashoeft.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LSHContributionView\n\n[![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat)](https://developer.apple.com/swift) [![Platform](https://img.shields.io/cocoapods/p/LSHContributionView.svg?style=flat)](http://cocoapods.org/pods/LSHContributionView) [![License](https://img.shields.io/cocoapods/l/LSHContributionView.svg?style=flat)](http://cocoapods.org/pods/LSHContributionView) [![Version](https://img.shields.io/cocoapods/v/LSHContributionView.svg?style=flat)](http://cocoapods.org/pods/LSHContributionView)\n\nContribution view similar to Contribution Graph on GitHub\n\n\u003cimg src=\"LSHContributionView.png\" alt=\"ContributionView\" width=375\u003e\n\n## Features\n\n- Customizable color scheme\n- Automatic resizing and scaling\n\n## Installation\n\n### CocoaPods\n\nTo install `LSHContributionView` via [CocoaPods](http://cocoapods.org), add the following line to your Podfile:\n\n```\npod 'LSHContributionView'\n```\n\n### Carthage\n\nSoon\n\n## Usage\n\nSee the example Xcode project. It contains:\n- **LSHContributionViewExample** - a simple example containing two contribution views\n\n### Interface Builder\n\n`LSHContributionView` can be set up in Interface Builder. To use it, set the custom view class to `LSHContributionView`. Some of the control's parameters can be customized in Interface Builder.\n\n### Code\n\n```swift\nlet dataSquare = [\n            [0, 1, 2, 3, 4],\n            [1, 2, 3, 4, 3],\n            [2, 3, 4, 3, 2],\n            [3, 4, 3, 2, 1],\n            [4, 3, 2, 1, 0]\n        ]\n   \nlet contributionView = LSHContributionView(frame: CGRect(x: 100, y: 100, width: 200, height: 180))\ncontributionView.data = dataSquare\ncontributionView.colorScheme = \"Halloween\"\nview.addSubview(contributionView)\n```\n\nAdd and Update Entry:\n```swift\ncontributionView.addEntry(with: CGPoint(x: 2, y: 2), level: 1)\n```\n\nAdjust Spacing and Margin:\n```swift\ncontributionView.gridSpacing = 0\ncontributionView.gridMargin = 10\n```\n\nAvailable Color Schemes:\n- Default\n- Halloween\n- Blue\n\n## Requirements\n\n- iOS 10.0\n- Xcode 10, Swift 4.2\n\n## License\n\n`LSHContributionView` is available under the MIT license. See the LICENSE file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucashoeft%2Flshcontributionview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucashoeft%2Flshcontributionview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucashoeft%2Flshcontributionview/lists"}