{"id":13742992,"url":"https://github.com/JaviSoto/JSBadgeView","last_synced_at":"2025-05-09T00:32:28.339Z","repository":{"id":4070457,"uuid":"5174929","full_name":"JaviSoto/JSBadgeView","owner":"JaviSoto","description":"Customizable UIKit badge view like the one on applications in the iOS springboard.","archived":false,"fork":false,"pushed_at":"2020-09-12T12:27:10.000Z","size":112,"stargazers_count":1296,"open_issues_count":8,"forks_count":211,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-04-30T08:01:56.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/JaviSoto.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":"2012-07-25T04:59:05.000Z","updated_at":"2025-03-04T06:14:24.000Z","dependencies_parsed_at":"2022-08-21T03:50:37.894Z","dependency_job_id":null,"html_url":"https://github.com/JaviSoto/JSBadgeView","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaviSoto%2FJSBadgeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaviSoto%2FJSBadgeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaviSoto%2FJSBadgeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaviSoto%2FJSBadgeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaviSoto","download_url":"https://codeload.github.com/JaviSoto/JSBadgeView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252299425,"owners_count":21725715,"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":[],"created_at":"2024-08-03T05:00:38.633Z","updated_at":"2025-05-09T00:32:28.094Z","avatar_url":"https://github.com/JaviSoto.png","language":"Objective-C","funding_links":[],"categories":["Badge","Objective-C  Stars 1000以内排名整理","Objective-C","Other"],"sub_categories":["General Purpose Libraries"],"readme":"## JSBadgeView\n\n[![CI Status](http://img.shields.io/travis/JaviSoto/JSBadgeView.svg?style=flat)](https://travis-ci.org/JaviSoto/JSBadgeView)\n[![Version](https://img.shields.io/cocoapods/v/JSBadgeView.svg?style=flat)](http://cocoapods.org/pods/JSBadgeView)\n[![License](https://img.shields.io/cocoapods/l/JSBadgeView.svg?style=flat)](http://cocoapods.org/pods/JSBadgeView)\n[![Platform](https://img.shields.io/cocoapods/p/JSBadgeView.svg?style=flat)](http://cocoapods.org/pods/JSBadgeView)\n\nCustomizable UIKit badge view like the one on applications in the iOS springboard.\nVery optimized for performance: drawn entirely using CoreGraphics.\n\nSnapshoot:\n\n\u003cimg src=\"http://cl.ly/image/3G3J2k3n133W/JSBadgeView-iOS7.png\" /\u003e\n\n## Usage\n- Clone the repository:\n\n```bash\n$ git clone git@github.com:JaviSoto/JSBadgeView.git\n```\n\n- Check out the sample project.\n\n- Drag the ```JSBadgeView``` folder into your project.\n- Include the header file:\n\n```objc\n#import \"JSBadgeView.h\"\n```\n\n- Create a ```JSBadgeView``` and attach it to a view at the position you like. Example:\n\n```objc\nJSBadgeView *badgeView = [[JSBadgeView alloc] initWithParentView:rectangle alignment:JSBadgeViewAlignmentTopRight];\nbadgeView.badgeText = @\"3\";\n```\n- Check the header file for all the things you can customize.\n\n## [CocoaPods](http://cocoapods.org/):\n- Add `pod 'JSBadgeView'` to your `Podfile`.\n- You're done!\n\n## `UIAppearance`\n- You can customize all `JSBadgeView`s in your application, or the ones that are subviews of a specific type of view, using `UIAppearance`. Example:\n\n```objc\n[[JSBadgeView appearance] setBadgeBackgroundColor:UIColor.blackColor];\n[[JSBadgeView appearance] setBadgeAlignment:JSBadgeViewAlignmentTopRight];\n```\n\n## Compatibility\n- Supports ARC. If you want to use it in a project without ARC, mark ```JSBadgeView.m``` with the linker flag ```-fobjc-arc```.\n- Compatible with iOS7.0+.\n\n## MIT License\nCopyright 2013 [Javier Soto](http://twitter.com/javisoto) (ios@javisoto.es)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJaviSoto%2FJSBadgeView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJaviSoto%2FJSBadgeView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJaviSoto%2FJSBadgeView/lists"}