[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6939":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},6939,"DGElasticPullToRefresh","gontovnik\u002FDGElasticPullToRefresh","gontovnik","Elastic pull to refresh for iOS developed in Swift","https:\u002F\u002Fmedium.com\u002F@gontovnik\u002Felastic-view-animation-or-how-i-built-dgelasticpulltorefresh-269a3ba8636e#.9dioekqv6",null,"Swift",3746,436,62,40,0,1,60.02,"MIT License",false,"master",true,[],"2026-06-12 04:00:31","# DGElasticPullToRefresh\nElastic pull to refresh compontent developed in Swift\n\nInspired by this Dribbble post: [Pull Down to Refresh](https:\u002F\u002Fdribbble.com\u002Fshots\u002F2232385-Pull-Down-to-Refresh) by [Hoang Nguyen](https:\u002F\u002Fdribbble.com\u002FHoanguyen)\n\nTutorial on how this bounce effect was achieved can be found [here](https:\u002F\u002Fmedium.com\u002F@gontovnik\u002Felastic-view-animation-or-how-i-built-dgelasticpulltorefresh-269a3ba8636e#.9dioekqv6).\n\n![](https:\u002F\u002Fraw.githubusercontent.com\u002Fgontovnik\u002FDGElasticPullToRefresh\u002Fmaster\u002FDGElasticPullToRefreshPreview1.gif)\n![](https:\u002F\u002Fraw.githubusercontent.com\u002Fgontovnik\u002FDGElasticPullToRefresh\u002Fmaster\u002FDGElasticPullToRefreshPreview2.gif)\n\n## Requirements\n* Xcode 7 or higher\n* iOS 8.0 or higher (may work on previous versions, just did not test it)\n* ARC\n* Swift 3.0\n\n## Demo\n\nOpen and run the DGElasticPullToRefreshExample project in Xcode to see DGElasticPullToRefresh in action.\n\n## Installation\n\n### CocoaPods\n\n``` ruby\npod 'DGElasticPullToRefresh'\n```\n\n### Manual\n\nAdd DGElasticPullToRefresh folder into your project.\n\n## Example usage\n\n``` swift\n\u002F\u002F Initialize tableView\nlet loadingView = DGElasticPullToRefreshLoadingViewCircle()\nloadingView.tintColor = UIColor(red: 78\u002F255.0, green: 221\u002F255.0, blue: 200\u002F255.0, alpha: 1.0)\ntableView.dg_addPullToRefreshWithActionHandler({ [weak self] () -> Void in\n    \u002F\u002F Add your logic here\n    \u002F\u002F Do not forget to call dg_stopLoading() at the end\n    self?.tableView.dg_stopLoading()\n}, loadingView: loadingView)\ntableView.dg_setPullToRefreshFillColor(UIColor(red: 57\u002F255.0, green: 67\u002F255.0, blue: 89\u002F255.0, alpha: 1.0))\ntableView.dg_setPullToRefreshBackgroundColor(tableView.backgroundColor!)\n```\n\nDo not forget to remove pull to refresh on view controller deinit. It is a temporary solution.\n\n``` swift\ndeinit {\n    tableView.dg_removePullToRefresh()\n}\n```\n\n### Description\n\nAdd pull to refresh without loading view:\n\n``` swift\nfunc dg_addPullToRefreshWithActionHandler(_ actionHandler: @escaping () -> Void)\n```\n\nAdd pull to refresh with loading view:\n\n``` swift\nfunc dg_addPullToRefreshWithActionHandler(_ actionHandler: @escaping () -> Void, loadingView: DGElasticPullToRefreshLoadingView?)\n```\n\nYou can use built-in *DGElasticPullToRefreshLoadingViewCircle* or create your own by subclassing **DGElasticPullToRefreshLoadingView** and implementing these methods:\n\n``` swift\nfunc setPullProgress(_ progress: CGFloat)\nfunc startAnimating()\nfunc stopLoading()\n```\n\nRemove pull to refresh:\n\n``` swift\nfunc dg_removePullToRefresh()\n```\n\nSet auto start loading:\n\n``` swift\nfunc dg_startLoading()\n```\n\nChange pull to refresh background color:\n\n``` swift\nfunc dg_setPullToRefreshBackgroundColor(_ color: UIColor)\n```\n\nChange pull to refresh fill color:\n\n``` swift\nfunc dg_setPullToRefreshFillColor(_ color: UIColor)\n```\n\n## Contribution\n\nPlease feel free to submit pull requests. Cannot wait to see your custom loading views for this pull to refresh.\n\n## Contact\n\nDanil Gontovnik\n\n- https:\u002F\u002Fgithub.com\u002Fgontovnik\n- https:\u002F\u002Ftwitter.com\u002Fgontovnik\n- http:\u002F\u002Fgontovnik.com\u002F\n- danil@gontovnik.com\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Danil Gontovnik\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\u002For 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 all\ncopies 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 THE\nSOFTWARE.\n","DGElasticPullToRefresh 是一个用 Swift 开发的 iOS 弹性下拉刷新组件。该项目提供了一种具有弹性和动画效果的下拉刷新功能，灵感来源于 Dribbble 上的一个设计作品。其核心功能包括支持自定义加载视图、设置背景颜色和填充颜色等，并且可以轻松地与 UITableView 或 UICollectionView 集成。DGElasticPullToRefresh 适用于需要为应用添加美观且交互性强的下拉刷新功能的场景，特别适合那些追求用户体验细节优化的应用开发者使用。通过 CocoaPods 或手动方式均可方便地集成到项目中。",2,"2026-06-11 03:09:40","top_language"]