{"id":13819391,"url":"https://github.com/raphaelcruzeiro/SwiftyBadgeButton","last_synced_at":"2025-05-16T04:33:34.891Z","repository":{"id":8962477,"uuid":"60387453","full_name":"raphaelcruzeiro/SwiftyBadgeButton","owner":"raphaelcruzeiro","description":"A simple, fully tested, 100% Swift badge button.","archived":false,"fork":false,"pushed_at":"2022-10-05T19:04:56.000Z","size":633,"stargazers_count":2,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T23:17:02.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/raphaelcruzeiro.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":"2016-06-04T01:32:37.000Z","updated_at":"2020-02-05T12:33:08.000Z","dependencies_parsed_at":"2022-08-08T08:30:43.102Z","dependency_job_id":null,"html_url":"https://github.com/raphaelcruzeiro/SwiftyBadgeButton","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelcruzeiro%2FSwiftyBadgeButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelcruzeiro%2FSwiftyBadgeButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelcruzeiro%2FSwiftyBadgeButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelcruzeiro%2FSwiftyBadgeButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaelcruzeiro","download_url":"https://codeload.github.com/raphaelcruzeiro/SwiftyBadgeButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254470068,"owners_count":22076564,"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-04T08:00:46.732Z","updated_at":"2025-05-16T04:33:34.516Z","avatar_url":"https://github.com/raphaelcruzeiro.png","language":"Ruby","funding_links":[],"categories":["Happy Exploring 🤘"],"sub_categories":[],"readme":"# SwiftyBadgeButton\n\u003ca href=\"https://github.com/raphaelcruzeiro/SwiftyBadgeButton/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-green.svg?style=flat\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://travis-ci.org/raphaelcruzeiro/SwiftyBadgeButton?branch=master\"\u003e\u003cimg src=\"https://travis-ci.org/raphaelcruzeiro/SwiftyBadgeButton.svg?branch=master\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://cocoapods.org/?q=SwiftyBadgeButton\"\u003e\u003cimg src=\"https://cocoapod-badges.herokuapp.com/v/SwiftyBadgeButton/badge.png\"/\u003e\u003c/a\u003e\n\n## Installation\n\n```\nuse_frameworks!\n\npod 'SwiftyBadgeButton'\n```\n\n## Usage\n\nSwiftyBadgeButton is a subclass of UIButton and can be used just as one. To set the badge, all you need to so is set a text:\n\n```\nbadgeButton.badgeText = \"1\"\n```\n\n## Properties\n\n- `animated` Sets whether the badge should animate upon setting a badgeText. _Default: true_\n- `badgeInset` Sets the insets and outsets for the badge\n- `badgeSize` Sets the default badge size. The width will grow automatically according to the text. The height will always stay the same. _Default: CGSize(width 15, height: 15)\n- `badgeBackgroundColor` Sets the badge background color. _Default: UIColor.red_\n- `badgeFont` Sets the badge font. _Default: UIFont.systemFont(ofSize: 10)_\n- `badgeTextColor` Sets the badge text color. _Default: UIColor.white_\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelcruzeiro%2FSwiftyBadgeButton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelcruzeiro%2FSwiftyBadgeButton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelcruzeiro%2FSwiftyBadgeButton/lists"}