From 424000975deb8749761fc40dc24775464a5e9dcb Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 9 Jul 2022 18:50:07 +0100 Subject: [PATCH] switches URL to `fileURLWithPath` --- Widget/Shared Views/ArticleItemView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Widget/Shared Views/ArticleItemView.swift b/Widget/Shared Views/ArticleItemView.swift index a3fbebba9..781ad2955 100644 --- a/Widget/Shared Views/ArticleItemView.swift +++ b/Widget/Shared Views/ArticleItemView.swift @@ -55,7 +55,7 @@ struct ArticleItemView: View { func thumbnail(from path: String?) -> Image? { guard let imagePath = path, - let url = URL(string: imagePath), + let url = URL(fileURLWithPath: imagePath), let data = try? Data(contentsOf: url), let uiImage = UIImage(data: data) else { return Image(uiImage: UIImage(systemName: "globe")!)