{"id":20685056,"url":"https://github.com/geri-borbas/ios.blog.swiftui_pull_to_refresh","last_synced_at":"2025-08-21T12:11:35.010Z","repository":{"id":41823885,"uuid":"282552686","full_name":"Geri-Borbas/iOS.Blog.SwiftUI_Pull_to_Refresh","owner":"Geri-Borbas","description":"✳️ SwiftUI Pull to Refresh (for iOS 13 and iOS 14) condensed into a single modifier.","archived":false,"fork":false,"pushed_at":"2022-03-30T01:28:54.000Z","size":6819,"stargazers_count":38,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T15:34:41.692Z","etag":null,"topics":["foreach","ios","ios13","ios14","list","pull-to-refresh","refresh","scrollview","swift","swiftui","tableview","uikit","uirefreshcontrol","uitableview"],"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":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-26T01:15:39.000Z","updated_at":"2025-02-06T11:44:33.000Z","dependencies_parsed_at":"2022-09-09T10:50:58.761Z","dependency_job_id":null,"html_url":"https://github.com/Geri-Borbas/iOS.Blog.SwiftUI_Pull_to_Refresh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geri-Borbas%2FiOS.Blog.SwiftUI_Pull_to_Refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geri-Borbas%2FiOS.Blog.SwiftUI_Pull_to_Refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geri-Borbas%2FiOS.Blog.SwiftUI_Pull_to_Refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geri-Borbas%2FiOS.Blog.SwiftUI_Pull_to_Refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geri-Borbas","download_url":"https://codeload.github.com/Geri-Borbas/iOS.Blog.SwiftUI_Pull_to_Refresh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250250018,"owners_count":21399570,"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":["foreach","ios","ios13","ios14","list","pull-to-refresh","refresh","scrollview","swift","swiftui","tableview","uikit","uirefreshcontrol","uitableview"],"created_at":"2024-11-16T22:25:22.354Z","updated_at":"2025-04-22T13:39:28.693Z","avatar_url":"https://github.com/Geri-Borbas.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUI Pull to Refresh\n⬇️🔄 SwiftUI Pull to Refresh (for iOS 13 and iOS 14) condensed into a single modifier.\n\nComplementary repository for article [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## Quick Start\n\nSee details in `OnRefreshModifier.swift` and `RefreshableModifier.swift` in [`Refreshable`] package. Find the examples above in the [`Examples`] folder.\n\nFor your own projects, simply use [`Refreshable`] Swift Package.\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[`Refreshable`]: https://github.com/Geri-Borbas/iOS.Package.Refreshable\n[`Examples`]: SwiftUI_Pull_to_Refresh/Examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeri-borbas%2Fios.blog.swiftui_pull_to_refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeri-borbas%2Fios.blog.swiftui_pull_to_refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeri-borbas%2Fios.blog.swiftui_pull_to_refresh/lists"}