{"id":28693233,"url":"https://github.com/jerry0523/jwrefreshcontrol","last_synced_at":"2025-08-10T03:03:39.271Z","repository":{"id":56916666,"uuid":"110072729","full_name":"Jerry0523/JWRefreshControl","owner":"Jerry0523","description":"A refresh control(header \u0026 footer of UIScrollview) for iOS app.","archived":false,"fork":false,"pushed_at":"2019-11-18T14:05:29.000Z","size":4468,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-10T03:03:05.044Z","etag":null,"topics":["cocoapods","ios","refreshcontrol","swift"],"latest_commit_sha":null,"homepage":"","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/Jerry0523.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":"2017-11-09T05:44:27.000Z","updated_at":"2021-01-15T00:31:10.000Z","dependencies_parsed_at":"2022-08-20T20:50:25.969Z","dependency_job_id":null,"html_url":"https://github.com/Jerry0523/JWRefreshControl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Jerry0523/JWRefreshControl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerry0523%2FJWRefreshControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerry0523%2FJWRefreshControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerry0523%2FJWRefreshControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerry0523%2FJWRefreshControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jerry0523","download_url":"https://codeload.github.com/Jerry0523/JWRefreshControl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerry0523%2FJWRefreshControl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269668187,"owners_count":24456495,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cocoapods","ios","refreshcontrol","swift"],"created_at":"2025-06-14T08:11:22.195Z","updated_at":"2025-08-10T03:03:39.249Z","avatar_url":"https://github.com/Jerry0523.png","language":"Swift","readme":"[![Build Status](https://travis-ci.org/Jerry0523/JWRefreshControl.svg?branch=master)](https://travis-ci.org/Jerry0523/JWRefreshControl)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/JWRefreshControl.svg)](https://img.shields.io/cocoapods/v/JWRefreshControl.svg)\n\n# JWRefreshControlDemo\nA refresh control(refresh header \u0026amp; footer for scrollview) for iOS app.\n\n![alt tag](https://raw.githubusercontent.com/Jerry0523/JWRefreshControl/master/screenshot.gif)\n\nUsage\n-------\n\n### Add a refresh header\n\n```swift\nself.tableView.addRefreshHeader { [weak self] (header) in\n    //fetch data and reload UI\n}\n```\n\n### Add a refresh footer\n\n```swift\nself.tableView.addRefreshFooter { [weak self] (footer) in\n    //fetch data and reload UI\n}\n```\n\n### Custom Content View Supported\n```swift\nself.webView.scrollView.addCustomRefreshHeader { [weak self] (header: RefreshHeaderControl\u003cSloganHeaderContentView\u003e) in\n    self?.webView.reload()\n    header.success()\n}\n```\n\n### Completion Handler\n\n- Notify refresh successfully\n```swift\nself.tableView.refreshHeader.success()\n```\n\n- Notify refresh error\n```swift\nself.tableView.refreshHeader.error(\"Network Error\")\n```\n\n- Notify no more data\n```swift\nself.tableView.refreshFooter.pause(\"No More Data\")\n```\n\n- Notify fetch task to stop\n```swift\nself.tableView.refreshHeader.stop()\n```\n\n## Installation with CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n#### Podfile\n\nTo integrate JWIntent into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\n\npod 'JWRefreshControl'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\nLicense\n-------\n(MIT license)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerry0523%2Fjwrefreshcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerry0523%2Fjwrefreshcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerry0523%2Fjwrefreshcontrol/lists"}