{"id":2272,"url":"https://github.com/yannickl/YLProgressBar","last_synced_at":"2025-08-02T23:32:44.929Z","repository":{"id":2394886,"uuid":"3361349","full_name":"yannickl/YLProgressBar","owner":"yannickl","description":"UIProgressView replacement with an highly and fully customizable animated progress bar in pure Core Graphics","archived":false,"fork":false,"pushed_at":"2019-01-08T20:45:06.000Z","size":4662,"stargazers_count":1275,"open_issues_count":13,"forks_count":186,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-10-29T17:40:09.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://yannickloriot.com/library/ios/ylprogressbar/","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/yannickl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2012-02-05T18:55:51.000Z","updated_at":"2024-10-17T02:34:37.000Z","dependencies_parsed_at":"2022-08-06T12:15:17.404Z","dependency_job_id":null,"html_url":"https://github.com/yannickl/YLProgressBar","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FYLProgressBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FYLProgressBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FYLProgressBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FYLProgressBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yannickl","download_url":"https://codeload.github.com/yannickl/YLProgressBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503167,"owners_count":17930527,"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-01-05T20:16:09.481Z","updated_at":"2024-12-06T17:30:56.664Z","avatar_url":"https://github.com/yannickl.png","language":"Objective-C","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/YannickL/YLProgressBar/raw/master/web/ylprogressbar_header.png\" alt=\"YLProgressBar\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://cocoadocs.org/docsets/YLProgressBar/\"\u003e\u003cimg alt=\"Supported Platforms\" src=\"https://cocoapod-badges.herokuapp.com/p/YLProgressBar/badge.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"http://cocoadocs.org/docsets/YLProgressBar/\"\u003e\u003cimg alt=\"Version\" src=\"https://cocoapod-badges.herokuapp.com/v/YLProgressBar/badge.svg\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThe **YLProgressBar** is an UIProgressView replacement with a highly and fully customizable animated progress bar in pure Core Graphics.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/YannickL/YLProgressBar/raw/master/web/YLProgressBar.gif\" alt=\"YLProgressBar\" /\u003e\n\u003c/p\u003e\n\nIt has been implemented using the Core Graphics framework without any images. So it can be customized freely and independently on the platform.\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e • \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e • \u003ca href=\"#contribution\"\u003eContribution\u003c/a\u003e • \u003ca href=\"#contact\"\u003eContact\u003c/a\u003e • \u003ca href=\"#license-mit\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n## Usage\n\nHere are some examples to show you how the `YLProgressBar` can be configured:\n\n```objc\n// Blue flat progress, with no stripes\n_progressBar.type               = YLProgressBarTypeFlat;\n_progressBar.progressTintColor  = [UIColor blueColor];\n_progressBar.hideStripes        = YES;\n\n// Green rounded/gloss progress, with vertical animated stripes in the left direction\n_progressBar.type               = YLProgressBarTypeRounded;\n_progressBar.progressTintColor  = [UIColor greenColor];\n_progressBar.stripesOrientation = YLProgressBarStripesOrientationVertical;\n_progressBar.stripesDirection   = YLProgressBarStripesDirectionLeft;\n\n// Rainbow flat progress, with the indicator text displayed over the progress bar\nNSArray *rainbowColors = @[[UIColor colorWithRed:33/255.0f green:180/255.0f blue:162/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:3/255.0f green:137/255.0f blue:166/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:91/255.0f green:63/255.0f blue:150/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:87/255.0f green:26/255.0f blue:70/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:126/255.0f green:26/255.0f blue:36/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:149/255.0f green:37/255.0f blue:36/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:228/255.0f green:69/255.0f blue:39/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:245/255.0f green:166/255.0f blue:35/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:165/255.0f green:202/255.0f blue:60/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:202/255.0f green:217/255.0f blue:54/255.0f alpha:1.0f],\n                           [UIColor colorWithRed:111/255.0f green:188/255.0f blue:84/255.0f alpha:1.0f]];\n\n_progressBar.type                     = YLProgressBarTypeFlat;\n_progressBar.hideStripes              = YES;\n_progressBar.indicatorTextDisplayMode = YLProgressBarIndicatorTextDisplayModeProgress;\n_progressBar.progressTintColors       = rainbowColors;\n\n// To allow the gradient colors to fit the progress width\n_progressBar.progressStretch          = YES;\n```\n\nYou can also use the `UIAppearence` protocol to configure all the progress bars at once:\n\n```objc\n[[YLProgressBar appearance] setType:YLProgressBarTypeFlat];\n[[YLProgressBar appearance] setProgressTintColor:[UIColor blueColor]];\n```\n\n## Installation\n\nThe recommended approach to use the _YLProgressBar_ in your project is using the [CocoaPods](http://cocoapods.org/) package manager, as it provides flexible dependency management and dead simple installation.\n\n#### CocoaPods\n\nInstall CocoaPods if not already available:\n\n``` bash\n$ [sudo] gem install cocoapods\n$ pod setup\n```\nGo to the directory of your Xcode project, and Create and Edit your Podfile and add YLProgressBar:\n\n``` bash\n$ cd /path/to/MyProject\n$ touch Podfile\n$ edit Podfile\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios\npod 'YLProgressBar', '~\u003e 3.11.0'\n```\n\nInstall into your project:\n\n``` bash\n$ pod install\n```\n\nOpen your project in Xcode from the .xcworkspace file (not the usual project file)\n\n``` bash\n$ open MyProject.xcworkspace\n```\n\n#### Manually\n\n[Download](https://github.com/YannickL/YLProgressBar/archive/master.zip) the project and copy the `YLProgressBar` folder into your project and then simply `#import \"YLProgressBar.h\"` in the file(s) you would like to use it in.\n\n## Contribution\n\nContributions are welcomed and encouraged *♡*.\n\n## Contact\n\nYannick Loriot\n - [https://21.co/yannickl/](https://21.co/yannickl/)\n - [https://twitter.com/yannickloriot](https://twitter.com/yannickloriot)\n\n## License (MIT)\nCopyright 2012 - present, Yannick Loriot.\nhttp://yannickloriot.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","funding_links":[],"categories":["UI","etc","OOM-Leaks-Crash","Objective-C"],"sub_categories":["Activity Indicator","Other free courses","WebView-ProgressBar"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannickl%2FYLProgressBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyannickl%2FYLProgressBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannickl%2FYLProgressBar/lists"}