{"id":15293593,"url":"https://github.com/volleyz/etbadge","last_synced_at":"2025-04-13T14:07:47.258Z","repository":{"id":56909547,"uuid":"88721858","full_name":"VolleyZ/ETBadge","owner":"VolleyZ","description":"A tool of swift to add or clear badge for any UIView。You can use it easily, also can custom it.","archived":false,"fork":false,"pushed_at":"2017-06-07T01:24:39.000Z","size":397,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T14:07:40.802Z","etag":null,"topics":["badge","etbadge","new","reddot","swift","swift3","uiview"],"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/VolleyZ.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":"2017-04-19T08:42:39.000Z","updated_at":"2019-11-20T02:42:31.000Z","dependencies_parsed_at":"2022-08-21T04:20:30.445Z","dependency_job_id":null,"html_url":"https://github.com/VolleyZ/ETBadge","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/VolleyZ%2FETBadge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolleyZ%2FETBadge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolleyZ%2FETBadge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolleyZ%2FETBadge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolleyZ","download_url":"https://codeload.github.com/VolleyZ/ETBadge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724636,"owners_count":21151561,"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":["badge","etbadge","new","reddot","swift","swift3","uiview"],"created_at":"2024-09-30T16:50:09.211Z","updated_at":"2025-04-13T14:07:47.234Z","avatar_url":"https://github.com/VolleyZ.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ETBadge\nA tool of swift to add or clear badge for any UIView。You can use it easily, also can custom it.\n\n![demo](https://github.com/VolleyZ/ETBadge/blob/master/20170419-175333-HD.gif)\n\n\nInstallation\n============\n\nThe preferred way of installation is via [CocoaPods](http://cocoapods.org). Just add\n\n```ruby\npod 'ETBadge'\n```\n\nand run `pod install`. It will install the most recent version of ETBadge.\n\nUsage\n===============\n1. Add the following import to the top of the file:\n\u003e import ETBadge\n\n 2. Use the following to display badge easily:\n\n\u003e badgeView.showBadge(withStyle: .redDot, value: 1, aniType: .none)\n\n\u003e badgeView.showBadge(withStyle: .new, value: 1, aniType: .breathe)\n\n\u003e badgeView.showBadge(withStyle: .number, value: 1, aniType: .scale)\n\nor simply call interface: **badgeView.showBadge()**\n \n3. Use the following to hide badge easily:\n \n\u003e badgeView.clearBadge();\n\n4.Use the following to resume badge when it has been hidden:\n\n\u003e badgeView.resumeBadge();\n\n----------\n\n\nBADGE CUSTOMIZATION\n--------------------\nFeel free to customize badge size, position, animation style or anything else.\n\nETBadge provides easy way to customize its style.:\n\n    public struct ETBadgeConfigure {\n      var badgeFont: UIFont = UIFont.boldSystemFont(ofSize: 10)\n      var badgeBgColor: UIColor = UIColor.red\n      var badgeTextColor: UIColor = UIColor.white\n      var aniType: ETBadgeAnimType = .none\n      var badgeCenterOffset: CGPoint = CGPoint.zero\n      var badgeStyle: ETBadgeStyle = .redDot\n      var badgeMaximumBadgeNumber: Int = 99\n      var badgeRedDotWidth: CGFloat = 8\n      var badgeTextMargin: CGFloat = 6\n      var badgeBounds: CGSize = CGSize(width: 16, height: 16)\n    }\nYou can customize style which you like.Simple used:\n\u003e badgeView.badgeConfig.badgeBgColor = UIColor.yellow\n\n\n## Requirements\n\n- iOS 8.0+ \n- Xcode 8.1+\n- Swift 3.0+\n\n----------\n----------\nLICENSE\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 THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolleyz%2Fetbadge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolleyz%2Fetbadge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolleyz%2Fetbadge/lists"}