{"id":27075285,"url":"https://github.com/elbryan/FFCircularProgressView","last_synced_at":"2025-04-06T00:02:51.423Z","repository":{"id":9548600,"uuid":"11455172","full_name":"franzhcs/FFCircularProgressView","owner":"franzhcs","description":"FFCircularProgressView - An iOS 7-inspired blue circular progress view","archived":false,"fork":false,"pushed_at":"2018-01-25T08:51:29.000Z","size":1514,"stargazers_count":994,"open_issues_count":7,"forks_count":108,"subscribers_count":42,"default_branch":"master","last_synced_at":"2024-05-29T21:18:01.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/franzhcs.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":"2013-07-16T17:07:38.000Z","updated_at":"2024-05-23T16:09:05.000Z","dependencies_parsed_at":"2022-09-13T20:11:27.152Z","dependency_job_id":null,"html_url":"https://github.com/franzhcs/FFCircularProgressView","commit_stats":null,"previous_names":["elbryan/ffcircularprogressview"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzhcs%2FFFCircularProgressView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzhcs%2FFFCircularProgressView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzhcs%2FFFCircularProgressView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzhcs%2FFFCircularProgressView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/franzhcs","download_url":"https://codeload.github.com/franzhcs/FFCircularProgressView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415959,"owners_count":20935388,"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":"2025-04-06T00:01:44.003Z","updated_at":"2025-04-06T00:02:51.416Z","avatar_url":"https://github.com/franzhcs.png","language":"Objective-C","funding_links":[],"categories":["UI","Objective-C  Stars 1000以内排名整理","Progress","Objective-C","ALL"],"sub_categories":["Activity Indicator"],"readme":"FFCircularProgressView [![Build Status](https://travis-ci.org/elbryan/FFCircularProgressView.png?branch=master)](https://travis-ci.org/elbryan/FFCircularProgressView)\n======================\n\nFFCircularProgressView - An iOS 7-inspired blue circular progress view\n\n![ss1](https://raw.github.com/elbryan/FFCircularProgressView/master/Media/ss1.png) ![ss2](https://raw.github.com/elbryan/FFCircularProgressView/master/Media/ss2.png) ![ss3](https://raw.github.com/elbryan/FFCircularProgressView/master/Media/ss3.png) ![ss4](https://raw.github.com/elbryan/FFCircularProgressView/master/Media/ss4.png)\n\nThis progress view is inspired by the new progress view in the App Store, iOS 7. Also the colors are taken from there.\n\n## See it in action\n\n [![sample](https://raw.github.com/elbryan/FFCircularProgressView/master/Media/sample.gif)](https://raw.github.com/elbryan/FFCircularProgressView/master/Media/sample.mov)\n\n## Requirements\n\nFFCircularProgressView works on iOS version \u003e 5 and is compatible with both ARC and non-ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:\n\n* Foundation.framework\n* UIKit.framework\n* CoreGraphics.framework\n* QuartzCore.framework\n\nYou will need LLVM 3.0 or later in order to build FFCircularProgressView.\n\n## Adding FFCircularProgressView to your project\n\nThere are plenty of ways to add this view to your project.\nMake sure you add the aforementioned frameworks to your project as well.\n\n### GIT submodule\n\nYou have the canonical `git submodule` option. Simply issue `git submodule add https://github.com/elbryan/FFCircularProgressView.git \u003cpath\u003e` in your root folder of your repository.\n\n### CocoaPods\n\n1. Add a pod entry to your [Podfile](https://github.com/CocoaPods/CocoaPods/wiki/A-Podfile) dependencies file such as `pod 'FFCircularProgressView', '\u003e= 0.1'`.\n2. Install the pod(s) by running `pod install`.\n3. Import the progress view with `#import \"FFCircularProgressView.h\" wherever you need in your project.\n\n### Source files\n\nManually add the source files to your project. The files you need are 'FFCircularProgressView.h', 'FFCircularProgressView.m', 'UIColor+iOS7.h', 'UIColor+iOS7.m'.\n\n## Usage\n\nJust use it as it is a normal UIProgressView. Make sure you set the progress value in the main thread ;)\n\n```objective-c\ndouble delayInSeconds = 2.0;\ndispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));\ndispatch_after(popTime, dispatch_get_main_queue(), ^(void){\n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND,0), ^{\n        for (float i=0; i\u003c1.1; i+=0.01F) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                [circularProgressView setProgress:i];\n            });\n            usleep(10000);\n        }            \n    });\n});\n```\n\nYou can also control the progress view spin animation by using the following two methods to start and stop the spinning, respectively:\n\n```objective-c\n// Start spinning\n[circularProgressView startSpinProgressBackgroundLayer];\n\n// Stop spinning\n[circularProgressView stopSpinProgressBackgroundLayer];\n```\n\n## Acknowledgments\n\nThe code to draw the tick has been adapted from [GSProgressView](https://github.com/goosoftware/GSProgressView/blob/master/GSProgressView.m).\n\n## License\n\nThis code is distributed under the terms and conditions of the [MIT license](LICENSE). \n\n## Attributions\n\nI do not demand to be mentioned in your apps nor to receive any kind of compensation if you use this code. Yet, I would like to have feedbacks if you use it and you like it.\n\nFollow me on Twitter: [@elbryanlos](https://twitter.com/elbryanlos)\n\n## Third Party Bindings\n\n### Android\n\nAre you an Android developer and you love this progress view? No problem! A couple of folks ported it to Android OS and you can get it [here](https://github.com/torryharris/TH-ProgressButton).\n  \t\t  \n### React Native\nYou may now use this library with [React Native](https://github.com/facebook/react-native) via the module [here](https://github.com/prscX/react-native-download-button)\n\nThank you guys!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbryan%2FFFCircularProgressView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felbryan%2FFFCircularProgressView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbryan%2FFFCircularProgressView/lists"}