{"id":17540511,"url":"https://github.com/fromkk/countdownlabel","last_synced_at":"2025-10-28T17:38:13.825Z","repository":{"id":146697315,"uuid":"74206127","full_name":"fromkk/CountdownLabel","owner":"fromkk","description":"CountdownLabel is able to display countdown","archived":false,"fork":false,"pushed_at":"2016-11-19T12:46:28.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T14:28:03.442Z","etag":null,"topics":[],"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/fromkk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-19T12:06:04.000Z","updated_at":"2016-11-19T12:18:25.000Z","dependencies_parsed_at":"2023-04-03T10:31:13.940Z","dependency_job_id":null,"html_url":"https://github.com/fromkk/CountdownLabel","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"a65f2b28c05dd2886c4cde84dbb19b9c6ceb281b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FCountdownLabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FCountdownLabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FCountdownLabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FCountdownLabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fromkk","download_url":"https://codeload.github.com/fromkk/CountdownLabel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140536,"owners_count":20729797,"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-20T22:24:05.318Z","updated_at":"2025-10-28T17:38:08.792Z","avatar_url":"https://github.com/fromkk.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CountdownLabel\n\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/322930/20455353/2d164494-ae9d-11e6-9351-02415633e31e.gif\" width=\"320\" height=\"auto\"\u003e\n\n`CountdownLabel` is able to display countdown animation.\n\n# Required\n\n- **Xcode 8** or later\n- **Swift 3.0.1 or later**\n- **iOS 10** or later\n- **Carthage** or **Cocoapods**\n\n# Install\n\n## Carthage\n\nAdd `github \"fromkk/CountdownLabel\"` to **Cartfile** and execute `carthage update` command on your terminal in project directory.  \n\nAdd **Carthage/Build/{Platform}/CountdownLabel.framework** to **Link Binary with Libralies** in you project.  \nIf you doesn't use Carthage, add **New Run Script Phase** and input `/usr/local/bin/carthage copy-frameworks` in **Build Phases** tab.  \nAdd `$(SRCROOT)/Carthage/Build/{Platform}/CountdownLabel.framework` to **Input Files**.\n\n## with Cocoapods\n\nAdd `pod 'CountdownLabel'` to **Podfile** and run `pod install` command on your terminal in project directory.\nOpen `{YourProject}.xcworkspace` file.\n\n# Usage\n\n```swift\nlet countdownLabel: CountdownLabel = CountdownLabel(frame: CGRect(origin: CGPoint.zero, size: CGSize(width: 320.0, height: 80.0)))\n\nlet goal: Date = Date(timeIntervalSinceNow: 60 * 60 * 24)\nlet manager: CountdownManager = CountdownManager(with: goal)\nmanager.timerUpdate { (text: String) in\n    countdownLabel.text = text\n}\nmanager.activate()\n```\n\n## Customize\n\n### CountdownLabel\n\n```swift\ncountdownLabel.textColor = UIColor.blue\ncountdownLabel.font = UIFont.boldSystemFont(ofSize: 64.0)\n```\n\n### CountdownManager\n\n```swift\nmanager.intervalPerSeconds = 12\nmanager.timerFinish {\n    print(\"finished!!!\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromkk%2Fcountdownlabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffromkk%2Fcountdownlabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromkk%2Fcountdownlabel/lists"}