{"id":13995045,"url":"https://github.com/V8tr/AsyncImage","last_synced_at":"2025-07-22T21:31:51.444Z","repository":{"id":52606772,"uuid":"240297962","full_name":"V8tr/AsyncImage","owner":"V8tr","description":"Asynchronous Image Loading from URL in SwiftUI","archived":false,"fork":false,"pushed_at":"2021-01-08T17:02:04.000Z","size":2660,"stargazers_count":274,"open_issues_count":8,"forks_count":36,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-10T14:17:53.697Z","etag":null,"topics":["combine","image","load-image-asynchronously","load-image-url","swift","swiftui","uiimage","uiimageview"],"latest_commit_sha":null,"homepage":"https://www.vadimbulavin.com/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/V8tr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-13T15:46:13.000Z","updated_at":"2024-07-22T00:13:38.000Z","dependencies_parsed_at":"2022-08-24T07:31:01.273Z","dependency_job_id":null,"html_url":"https://github.com/V8tr/AsyncImage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/V8tr%2FAsyncImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/V8tr%2FAsyncImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/V8tr%2FAsyncImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/V8tr%2FAsyncImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/V8tr","download_url":"https://codeload.github.com/V8tr/AsyncImage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177747,"owners_count":17743156,"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":["combine","image","load-image-asynchronously","load-image-url","swift","swiftui","uiimage","uiimageview"],"created_at":"2024-08-09T14:03:13.587Z","updated_at":"2024-11-29T17:30:54.254Z","avatar_url":"https://github.com/V8tr.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"## Article related to this project\n\n- [Asynchronous Image Loading from URL in SwiftUI](https://www.vadimbulavin.com/asynchronous-swiftui-image-loading-from-url-with-combine-and-swift/).\n\n---\n\n# AsyncImage\n\nThe project demonstrates how to load images asynchronously in SwiftUI.\n\nUsage:\n\n```swift\n// Image URLs to load\nlet posters = [\n    \"https://image.tmdb.org/t/p/original/pThyQovXQrw2m0s9x82twj48Jq4.jpg\",\n    \"https://image.tmdb.org/t/p/original/vqzNJRH4YyquRiWxCCOH0aXggHI.jpg\",\n    \"https://image.tmdb.org/t/p/original/6ApDtO7xaWAfPqfi2IARXIzj8QS.jpg\",\n    \"https://image.tmdb.org/t/p/original/7GsM4mtM0worCtIVeiQt28HieeN.jpg\"\n].map { URL(string: $0)! }\n\nstruct ContentView: View {\n    var body: some View {\n         List(posters, id: \\.self) { url in\n             AsyncImage(\n                url: url,\n                placeholder: { Text(\"Loading ...\") },\n                image: { Image(uiImage: $0).resizable() }\n             )\n            .frame(idealHeight: UIScreen.main.bounds.width / 2 * 3) // 2:3 aspect ratio\n         }\n    }\n}\n```\n\nResult:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/V8tr/AsyncImage/blob/master/demo.gif\" alt=\"How to load image from URL asynchronously in SwiftUI\"/\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FV8tr%2FAsyncImage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FV8tr%2FAsyncImage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FV8tr%2FAsyncImage/lists"}