{"id":16948635,"url":"https://github.com/timoliver/tobadgeview","last_synced_at":"2025-04-11T20:12:40.820Z","repository":{"id":48887974,"uuid":"156572269","full_name":"TimOliver/TOBadgeView","owner":"TimOliver","description":"A badge view that can be used to accessorize other UI elements in iOS.","archived":false,"fork":false,"pushed_at":"2021-07-07T01:49:07.000Z","size":193,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T20:12:36.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/TimOliver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"timoliver","custom":"https://tim.dev/paypal"}},"created_at":"2018-11-07T16:02:41.000Z","updated_at":"2024-05-22T03:35:34.000Z","dependencies_parsed_at":"2022-09-16T04:11:46.322Z","dependency_job_id":null,"html_url":"https://github.com/TimOliver/TOBadgeView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOBadgeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOBadgeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOBadgeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOBadgeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimOliver","download_url":"https://codeload.github.com/TimOliver/TOBadgeView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473126,"owners_count":21109628,"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-10-13T21:51:44.873Z","updated_at":"2025-04-11T20:12:40.802Z","avatar_url":"https://github.com/TimOliver.png","language":"Objective-C","funding_links":["https://github.com/sponsors/timoliver","https://tim.dev/paypal","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M4RKULAVKV7K8"],"categories":[],"sub_categories":[],"readme":"# TOBadgeView\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/TimOliver/TOBadgeView/master/screenshot.jpg\" width=\"750\" style=\"margin:0 auto\" /\u003e\n\u003c/p\u003e\n\n[![CocoaPods](https://img.shields.io/cocoapods/dt/TOBadgeView.svg?maxAge=3600)](https://cocoapods.org/pods/TOBadgeView)\n[![Version](https://img.shields.io/cocoapods/v/TOBadgeView.svg?style=flat)](http://cocoadocs.org/docsets/TOBadgeView)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TimOliver/TOBadgeView/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/TOBadgeView.svg?style=flat)](http://cocoadocs.org/docsets/TOBadgeView)\n[![PayPal](https://img.shields.io/badge/paypal-donate-blue.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M4RKULAVKV7K8)\n\n`TOBadgeView` is a very basic `UIView` subclass to provide a GPU-efficient recreation of the class iOS badge icon.\n\nIt is wholly dynamic, where all sizing, fonts and colors can be changed, and it can intelligently resize itself to fit a particular text value.\n\n## Features\n\n* Recreates the standard iOS badge icon and style.\n* Uses Core Animation and Metal to provide VERY efficient layer compositing.\n\n## System Requirements\niOS 9.0 and above.\n\n## Installation\n\n**As a CocoaPods Dependency**\n\nAdd the following to your Podfile:\n```\npod 'TOBadgeView'\n```\n\n**Manual Installation**\n\nCopy the folder `TOBadgeView` to your Xcode project.\n\n`TOBadgeView` is an Objective-C project, but it has been written to work properly in Swift as well. If you are using it in a Swift project, don't forget to include it in your Objective-C bridging header.\n\n## Examples\n\n`TOBadgeView` is very bare-bones and behaves in what should be a very intuitive manner.\n\n### Hello World Example\n\n```swift\nlet badgeView = BadgeView() // Create the badge view\nbadgeView.text = \"1\"\nbadgeView.sizeToFit() // Change the badge view size to fit\n```\n\n\n## Credits\n`TOBadgeView` was originally created by [Tim Oliver](http://twitter.com/TimOliverAU) as a component for [iComics](http://icomics.co), a comic reader app for iOS.\n\niOS Device mockups used in the screenshot created by [Pixeden](http://www.pixeden.com).\n\n## License\nTOBadgeView is licensed under the MIT License, please see the [LICENSE](LICENSE) file. ![analytics](https://ga-beacon.appspot.com/UA-5643664-16/TOBadgeView/README.md?pixel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftobadgeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoliver%2Ftobadgeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftobadgeview/lists"}