{"id":26591572,"url":"https://github.com/marcbiosca/asyncimage","last_synced_at":"2026-05-15T20:32:20.181Z","repository":{"id":60971429,"uuid":"543504407","full_name":"MarcBiosca/AsyncImage","owner":"MarcBiosca","description":"Simple iOS 13 AsyncImage","archived":false,"fork":false,"pushed_at":"2022-11-02T15:15:43.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T21:11:10.424Z","etag":null,"topics":["asyncimage","ios","ios13","swift","swiftui"],"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/MarcBiosca.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":"2022-09-30T08:35:26.000Z","updated_at":"2023-12-30T14:29:50.000Z","dependencies_parsed_at":"2022-10-07T17:25:46.859Z","dependency_job_id":null,"html_url":"https://github.com/MarcBiosca/AsyncImage","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/MarcBiosca/AsyncImage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcBiosca%2FAsyncImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcBiosca%2FAsyncImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcBiosca%2FAsyncImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcBiosca%2FAsyncImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcBiosca","download_url":"https://codeload.github.com/MarcBiosca/AsyncImage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcBiosca%2FAsyncImage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264330601,"owners_count":23591955,"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":["asyncimage","ios","ios13","swift","swiftui"],"created_at":"2025-03-23T14:18:31.093Z","updated_at":"2026-05-15T20:32:20.133Z","avatar_url":"https://github.com/MarcBiosca.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AsyncImage\niOS \u003e= 13 AsyncImage with the following characteristics:\n- Loads the image when te view appears in the screen\n- Cancel download request when it disappears\n- (optional) in-memory cache to avoid too many URLRequest\n- Thread safe\n- Concurrency handling to avoid duplicate URLRequest\n- Automatically reload when connectivity is regained\n- Automatic retry when URLRequest fails\n\n## Getting started\nYou can clone this repository and run the `AsyncImageDemo` App.\n\n```swift\nAsyncImage(\"https://picsum.photos/200/300\".urlRequest)\n    .frame(width: 200, height: 200)\n```\n\nYou can optionally use the `configuration` to apply modifiers to the Image rather than directly to the View returned by AsyncImage.\nIf not specified, default ones applied are: `resizable().renderingMode(.original)`\n\n### Controlling the cache\n\u003e Warning: Make sure to create an ImageCache and PublisherCache object somewhere in your app/module and injected to the AsyncImage object. Do not create a new one per each image, otherwise it will not work as intended.\n\n```swift\nlet imageCache = PublisherCacheFactory.makeTemporaryCache()\nlet publisherCache = ImageCacheFactory.makeTemporaryCache()\n\nAsyncImage(\n    request: \"https://picsum.photos/200/300\".urlRequest,\n    imageCache: imageCache,\n    publisherCache: publisherCache\n)\n.frame(width: 200, height: 200)\n```\n\n## Install\n### Swift Package Manager\nIn Xcode, right click your project and `Add Packages`, then enter the repository URL.\n```\nhttps://github.com/MarcBiosca/AsyncImage\n```\n\nIf you are working with a package, add the repository URL in your `Package.swift`:\n```swift\n.package(url: \"https://github.com/MarcBiosca/AsyncImage.git\", from: \"1.0.0\")\n```\n\n### CocoaPods\nAdd the following line in your `Podfile`:\n```\npod 'SimpleAsyncImage'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbiosca%2Fasyncimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcbiosca%2Fasyncimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbiosca%2Fasyncimage/lists"}