{"id":21275709,"url":"https://github.com/shial4/scountlabel","last_synced_at":"2025-07-11T08:30:39.262Z","repository":{"id":56921833,"uuid":"93817911","full_name":"shial4/SCountLabel","owner":"shial4","description":"SCountLabel is an easy to use Swift extension counter for UILabel","archived":false,"fork":false,"pushed_at":"2019-03-26T04:21:36.000Z","size":68,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T21:12:14.609Z","etag":null,"topics":["animation","counter","swift","uikit","uilabel","uilabel-extension"],"latest_commit_sha":null,"homepage":null,"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/shial4.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-06-09T04:10:34.000Z","updated_at":"2024-02-14T11:57:28.000Z","dependencies_parsed_at":"2022-08-21T04:50:13.007Z","dependency_job_id":null,"html_url":"https://github.com/shial4/SCountLabel","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shial4%2FSCountLabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shial4%2FSCountLabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shial4%2FSCountLabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shial4%2FSCountLabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shial4","download_url":"https://codeload.github.com/shial4/SCountLabel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225707641,"owners_count":17511627,"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":["animation","counter","swift","uikit","uilabel","uilabel-extension"],"created_at":"2024-11-21T09:36:33.684Z","updated_at":"2024-11-21T09:36:34.238Z","avatar_url":"https://github.com/shial4.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SCountLabel\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"http://swift.org\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Swift-5.0-brightgreen.svg\" alt=\"Language\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://raw.githubusercontent.com/shial4/SCountLabel/master/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://cocoapods.org/pods/SCountLabel\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/v/SCountLabel.svg\" alt=\"CocoaPods\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/carthage-compatible-4BC51D.svg?style=flat\" alt=\"Carthage\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nSCountLabel is an easy to use Swift extension counter for UILabel. There is no need to use custom class for your labels. :)\n## 💊 Usage\nYou can count integer or floatingpoints values\n```swift\nUILabel().count(to: \"11\")\n```\n![int](https://github.com/shial4/SCountLabel/blob/master/Media/int.gif \"int\")\n\n```swift\nUILabel().count(to: \"11.0\")\n```\n![float](https://github.com/shial4/SCountLabel/blob/master/Media/float.gif \"float\")\n\nYou can have multiple variaitons including few counting numbers in same string.\n```swift\nUILabel().count(to: \"11 and second number in same string -22.0\")\n```\nThe values can be negative or positive. Typed as `2.0` or `.2` what ever you like!\nMore over you can pass your own time interval between value changes in your string\n```swift\nUILabel().count(from: \"down 11.0 up 7\", to: \"down 5.0 up 11\", interval: 0.2)\n```\nFor those who likes to play with strings format. Is it as well awaiable to modife for each number format passing it in array.\nRemember the format array have to be the sime element count as the shortest strings `from` or `to` number count. And the format need to be specify for float values which means `\"%f\"`, ex:`\"%.2f\"` or `\"%0.2f %%\"` or any custom format you wont to add. \n```swift\nUILabel().count(from: \"down 11.0 up 7\", to: \"down 5.0 up 11\", format: [\"%0.2f\", \"%0.0f\"])\n```\n![custom](https://github.com/shial4/SCountLabel/blob/master/Media/custom.gif \"custom\")\n\nFull example:\n```swift\nUILabel().count(from: \"down 11.0 up 7\", to: \"down 5.0 up 11\", interval: 0.2, format: [\"%0.2f\", \"%0.0f\"])\n```\n\n## 🔧 Installation\n\n**CocoaPods:**\n\nAdd the line `pod \"SCountLabel\"` to your `Podfile`\n\n**Carthage:**\n\nAdd the line `github \"shial4/SCountLabel\"` to your `Cartfile`\n\n**Manual:**\n\nClone the repo and drag the file `SCountLabel.swift` into your Xcode project.\n\n**Swift Package Manager:**\n\nAdd the line `.Package(url: \"https://github.com/shial4/SCountLabel.git\", majorVersion: 0, minor: 0)` to your `Package.swift`\n\n## ⭐ Contributing\n\nBe welcome to contribute to this project! :)\n\n## ❓ Questions\n\nJust create an issue on GitHub.\n\n## 📝 License\n\nThis project was released under the [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshial4%2Fscountlabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshial4%2Fscountlabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshial4%2Fscountlabel/lists"}