mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +00:00
Revert "switches URL to fileURLWithPath"
This commit is contained in:
1 parent
ad51c2c5b6
commit
0bbb61511f
1 file changed
+1
-1
@@ -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")!)
|
||||
|
||||
Reference in new issue
Block a user