{"id":2257,"url":"https://github.com/andreamazz/GearRefreshControl","last_synced_at":"2025-08-02T23:32:27.842Z","repository":{"id":28938974,"uuid":"32464800","full_name":"andreamazz/GearRefreshControl","owner":"andreamazz","description":"A custom animation for the UIRefreshControl","archived":false,"fork":false,"pushed_at":"2017-08-28T06:52:23.000Z","size":562,"stargazers_count":617,"open_issues_count":3,"forks_count":51,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-04-14T15:07:05.968Z","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/andreamazz.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":"2015-03-18T14:47:51.000Z","updated_at":"2024-04-14T15:07:05.969Z","dependencies_parsed_at":"2022-08-21T03:20:17.069Z","dependency_job_id":null,"html_url":"https://github.com/andreamazz/GearRefreshControl","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/andreamazz%2FGearRefreshControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreamazz%2FGearRefreshControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreamazz%2FGearRefreshControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreamazz%2FGearRefreshControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreamazz","download_url":"https://codeload.github.com/andreamazz/GearRefreshControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503151,"owners_count":17930521,"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.063Z","updated_at":"2024-12-06T17:30:53.303Z","avatar_url":"https://github.com/andreamazz.png","language":"Swift","funding_links":["https://www.paypal.me/andreamazzini"],"categories":["UI"],"sub_categories":["Activity Indicator","Other free courses"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"420\" height=\"240\" src=\"assets/logo.png\"/\u003e\n\u003c/p\u003e\n\n[![CocoaPods](https://cocoapod-badges.herokuapp.com/v/GearRefreshControl/badge.svg)](http://cocoapods.org/?q=gearrefreshcontrol)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n![Swift 3.0](https://img.shields.io/badge/swift-3.0-orange.svg)\n\nA custom animation for the UIRefreshControl. Inspired by this [Dribble shot](https://dribbble.com/shots/1974767-gear-powered-pull-to-refresh-animation?list=animated\u0026sort=popular\u0026timeframe=now\u0026offset=19) and [this tutorial](http://www.jackrabbitmobile.com/design/ios-custom-pull-to-refresh-control/).\n\n\u003cp align=\"center\"\u003e\n  \u003ca href='https://appetize.io/app/a9042664hahfqdukecqy1hqzpw' alt='Live demo'\u003e\n    \u003cimg width=\"50\" height=\"60\" src=\"assets/demo.png\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Screenshot\n![GearRefreshControl](https://raw.githubusercontent.com/andreamazz/GearRefreshControl/master/assets/screenshot.gif)\n\n# Usage\nInstall through [CocoaPods](http://cocoapods.org)\n\n```\npod 'GearRefreshControl', '~\u003e 1.0.0'\n\nuse_frameworks!\n```\n\nSetup your `refreshControl`:\n\n```swift\noverride func viewDidLoad() {\n    super.viewDidLoad()\n    gearRefreshControl = GearRefreshControl(frame: self.view.bounds)\n    gearRefreshControl.addTarget(self, action: #selector(ViewController.refresh), for: UIControlEvents.valueChanged)\n    self.refreshControl = gearRefreshControl\n}\n```\n\nUpdate state:\n\n```swift\noverride func scrollViewDidScroll(_ scrollView: UIScrollView) {\n    gearRefreshControl.scrollViewDidScroll(scrollView)\n}\n```\n\nStop the animation on completion:\n```swift\nself.gearRefreshControl.endRefreshing()\n```\n\n## Customization\n\nYou can customize the color of the control by setting the `gearTintColor` property:\n\n```swift\ngearRefreshControl.gearTintColor = .red\n```\n\nCheckout the sample project for the full implementation.\n\n# Author\n[Andrea Mazzini](https://twitter.com/theandreamazz). I'm available for freelance work, feel free to contact me.\n\nWant to support the development of [these free libraries](https://cocoapods.org/owners/734)? Buy me a coffee ☕️ via [Paypal](https://www.paypal.me/andreamazzini).  \n\n# Contributors\nThanks to [everyone](https://github.com/andreamazz/GearRefreshControl/graphs/contributors) kind enough to submit a pull request.\n\n# MIT License\n\n\tCopyright (c) 2017 Andrea Mazzini. All rights reserved.\n\n\tPermission is hereby granted, free of charge, to any person obtaining a\n\tcopy of this software and associated documentation files (the \"Software\"),\n\tto deal in the Software without restriction, including\n\twithout limitation the rights to use, copy, modify, merge, publish,\n\tdistribute, sublicense, and/or sell copies of the Software, and to\n\tpermit persons to whom the Software is furnished to do so, subject to\n\tthe following conditions:\n\n\tThe above copyright notice and this permission notice shall be included\n\tin all copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n\tOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\tMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n\tIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n\tCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n\tTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n\tSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreamazz%2FGearRefreshControl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreamazz%2FGearRefreshControl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreamazz%2FGearRefreshControl/lists"}