{"id":20685006,"url":"https://github.com/geri-borbas/ios.package.refreshable","last_synced_at":"2025-04-22T13:39:08.347Z","repository":{"id":63910827,"uuid":"475650939","full_name":"Geri-Borbas/iOS.Package.Refreshable","owner":"Geri-Borbas","description":"✳️ SwiftUI Pull to Refresh (for iOS 13 and iOS 14) package.","archived":false,"fork":false,"pushed_at":"2022-03-31T10:13:25.000Z","size":10,"stargazers_count":37,"open_issues_count":0,"forks_count":13,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-16T07:01:41.158Z","etag":null,"topics":["async-await","ios","pull-to-refresh","refreshable","scrollview","swift","swift-package","swift-package-manager","swiftui","uikit","uirefreshcontrol","uiscrollview"],"latest_commit_sha":null,"homepage":"https://blog.eppz.eu/swiftui-pull-to-refresh/","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/Geri-Borbas.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":"2022-03-29T23:25:26.000Z","updated_at":"2024-09-25T15:57:13.000Z","dependencies_parsed_at":"2023-01-14T13:16:03.965Z","dependency_job_id":null,"html_url":"https://github.com/Geri-Borbas/iOS.Package.Refreshable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geri-Borbas%2FiOS.Package.Refreshable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geri-Borbas%2FiOS.Package.Refreshable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geri-Borbas%2FiOS.Package.Refreshable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geri-Borbas%2FiOS.Package.Refreshable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geri-Borbas","download_url":"https://codeload.github.com/Geri-Borbas/iOS.Package.Refreshable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224976380,"owners_count":17401390,"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":["async-await","ios","pull-to-refresh","refreshable","scrollview","swift","swift-package","swift-package-manager","swiftui","uikit","uirefreshcontrol","uiscrollview"],"created_at":"2024-11-16T22:25:04.296Z","updated_at":"2024-11-16T22:25:04.831Z","avatar_url":"https://github.com/Geri-Borbas.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refreshable\n✳️ SwiftUI Pull to Refresh (for iOS 13 and iOS 14) package.\n\nSee complementary article at [SwiftUI Pull to Refresh (for iOS 13 and iOS 14)]. With this extension you can **backport the iOS 15 refreshable modifier to iOS 13 and iOS 14**, and use the exact same code across the board.\n\nhttps://user-images.githubusercontent.com/1779614/160678139-6f16e4e5-2ec6-4dd6-8f79-87fcdcb05df6.mp4\n\n```Swift\nstruct ContentView: View {\n    \n\t...\n    \n    var body: some View {\n        List {\n            ...\n        }\n        .refreshable {\n            await viewModel.fetch()\n        }\n    }\n}\n```\n\nAlternatively, you can opt into the **closure-based API** below to spare using async await API.\n\n```Swift\nstruct ContentView: View {\n    \n\t...\n    \n    var body: some View {\n        List {\n            ...\n        }\n        .onRefresh { refreshControl in\n            viewModel.fetch {\n                refreshControl.endRefreshing()\n            }\n        }\n    }\n}\n```\n\n\n## License\n\n\u003e Licensed under the [**MIT License**](https://en.wikipedia.org/wiki/MIT_License).\n\n[SwiftUI Pull to Refresh (for iOS 13 and iOS 14)]: https://blog.eppz.eu/swiftui-pull-to-refresh/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeri-borbas%2Fios.package.refreshable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeri-borbas%2Fios.package.refreshable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeri-borbas%2Fios.package.refreshable/lists"}