{"id":15561347,"url":"https://github.com/fitclan/fitrefresh","last_synced_at":"2025-08-20T08:17:15.145Z","repository":{"id":56911327,"uuid":"89661272","full_name":"FitClan/FitRefresh","owner":"FitClan","description":"Swift 的 下拉刷新 (The refresh use Swift)","archived":false,"fork":false,"pushed_at":"2019-03-27T09:46:02.000Z","size":813,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T23:14:21.742Z","etag":null,"topics":["cocoapods","ios-swift","refresh","refreshcontrol","swift","swift4","swift5"],"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/FitClan.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-04-28T02:54:24.000Z","updated_at":"2021-08-09T13:27:28.000Z","dependencies_parsed_at":"2022-08-21T03:20:15.166Z","dependency_job_id":null,"html_url":"https://github.com/FitClan/FitRefresh","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/FitClan/FitRefresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitClan%2FFitRefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitClan%2FFitRefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitClan%2FFitRefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitClan%2FFitRefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FitClan","download_url":"https://codeload.github.com/FitClan/FitRefresh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitClan%2FFitRefresh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271285534,"owners_count":24732930,"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-20T02:00:09.606Z","response_time":69,"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-swift","refresh","refreshcontrol","swift","swift4","swift5"],"created_at":"2024-10-02T16:07:34.075Z","updated_at":"2025-08-20T08:17:15.127Z","avatar_url":"https://github.com/FitClan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FitRefresh\n\u003cp align=\"left\"\u003e\n\u003cimg src=\"https://github.com/cywd/FitRrefesh/blob/master/Resources/logo.png\" alt=\"FitRefresh\" title=\"FitRefresh\" width=\"100\"/\u003e\n\u003c/p\u003e\n\n[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/cywd/FitRefresh/blob/master/LICENSE) \n[![CocoaPods](http://img.shields.io/cocoapods/v/FitRefresh.svg?style=flat)](http://cocoapods.org/?q=FitRefresh) \n[![CocoaPods](http://img.shields.io/cocoapods/p/FitRefresh.svg?style=flat)](http://cocoapods.org/?q=FitRefresh) \n\n\n\n`Swift 5+` 的下拉刷新。\n\nThe refresh use Swift5..\n\n## 集成 Installation\n\n最简单也是推荐的方式。\nThe sample way.\n\n```ruby\npod 'FitRrefesh'\n```\n\n另外一种。\nelse\n\n把`Sources`中的文件加入到你的项目中。\n\nYou can also drop the `Sources` to your project.\n\n## 使用 Use\n\n### Version 1.3 Later\n\n```swift\n// header\n// first way\nself.tableView.fr.headerView = FRNormalHeader(target: self, action: #selector(NormalTableViewController.upPullLoadData))\nself.tableView.fr.headerView?.beginRefreshing()\n// second way\nself.tableView.fr.headerView = FRNormalHeader(ComponentRefreshingClosure: { \n            self.upPullLoadData()\n        })\nself.tableView.fr.headerView?.beginRefreshing()\n\n\n// footer\n// first way\nself.tableView.fr.footerView = FRAutoNormalFooter(target: self, action: #selector(NormalTableViewController.downPullLoadData))\n// second way\nself.tableView.fr.footerView = FRAutoNormalFooter(ComponentRefreshingClosure: {\n            self.downPullLoadData()\n        })\n```\n\n### Version 1.2 \n\n```swift\n// header\n// first way\nself.tableView.fr_headerView = FRNormalHeader(target: self, action: #selector(NormalTableViewController.upPullLoadData))\nself.tableView.fr_headerView?.beginRefreshing()\n// second way\nself.tableView.fr_headerView = FRNormalHeader(ComponentRefreshingClosure: { \n            self.upPullLoadData()\n        })\nself.tableView.fr_headerView?.beginRefreshing()\n\n\n// footer\n// first way\nself.tableView.fr_footerView = FRAutoNormalFooter(target: self, action: #selector(NormalTableViewController.downPullLoadData))\n// second way\nself.tableView.fr_footerView = FRAutoNormalFooter(ComponentRefreshingClosure: {\n            self.downPullLoadData()\n        })\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitclan%2Ffitrefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitclan%2Ffitrefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitclan%2Ffitrefresh/lists"}