{"id":15719671,"url":"https://github.com/krayc425/kcprogressbutton","last_synced_at":"2025-04-07T07:47:23.209Z","repository":{"id":67065925,"uuid":"102944566","full_name":"krayc425/KCProgressButton","owner":"krayc425","description":"A download button with progress in masked text color.","archived":false,"fork":false,"pushed_at":"2017-09-09T10:24:40.000Z","size":445,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T11:50:15.070Z","etag":null,"topics":["ios-app","ios-ui","swift","uibutton","uibutton-subclass"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krayc425.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}},"created_at":"2017-09-09T09:46:26.000Z","updated_at":"2025-01-03T01:40:40.000Z","dependencies_parsed_at":"2023-09-11T15:26:51.816Z","dependency_job_id":null,"html_url":"https://github.com/krayc425/KCProgressButton","commit_stats":null,"previous_names":["krayc425/kcprogressbutton"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krayc425%2FKCProgressButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krayc425%2FKCProgressButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krayc425%2FKCProgressButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krayc425%2FKCProgressButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krayc425","download_url":"https://codeload.github.com/krayc425/KCProgressButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247615481,"owners_count":20967182,"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":["ios-app","ios-ui","swift","uibutton","uibutton-subclass"],"created_at":"2024-10-03T21:56:30.441Z","updated_at":"2025-04-07T07:47:23.153Z","avatar_url":"https://github.com/krayc425.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KCProgressButton\n\nA download button with progress in masked text color.\n\n# Preview\n\n![](https://github.com/songkuixi/KCProgressButton/blob/master/Preview.gif)\n\n# Usage\n\nClone this repo and drag `KCProgressButton.swift` into your project.\n\n## Code\n\n__The type of this button MUST BE Custom.__\n\n```\n/// Initialize a button and set other properties\nlet kcButton = KCProgressButton(type: .custom)\nkcButton.frame = CGRect(x: 30, y: 30, width: 100, height: 30)\nkcButton.backgroundColor = .red\n\n/// Set the initial title\nkcButton.setTitle(\"Download\", for: .normal)\n\n/// Set the value formatter\nkcButton.valueFormatter = {\n  return String(format: \"Downloaded %d%%\", Int($0 * 100))\n}\n\n/// Set the title when download is finished\nkcButton.finishDownloadTitle = \"Done\"\n\n/// Set the border width\nkcButton.borderWidth = 3.0\n\nself.view.addSubview(kcButton)\n```\n## StoryBoard / xib\n\n1. Drag a `UIButton` into your view, and set its class to `KCProgressButton`, and set its type to `Custom`.\n2. Set other properties like above.\n\n# TODO\n\n* Enhance efficiency to save memory usage.\n\n# License\n\n__GNU General Public License v3.0__\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrayc425%2Fkcprogressbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrayc425%2Fkcprogressbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrayc425%2Fkcprogressbutton/lists"}