From 0bbb61511feee381b6f933c41dc9f2abf24cf3e2 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 28 Jul 2022 16:19:02 -0500 Subject: [PATCH] Revert "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 781ad2955..a3fbebba9 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(fileURLWithPath: imagePath), + let url = URL(string: imagePath), let data = try? Data(contentsOf: url), let uiImage = UIImage(data: data) else { return Image(uiImage: UIImage(systemName: "globe")!)