Merge pull request #3633 from Ranchero-Software/revert-3621-ios-candidate

Revert "switches URL to `fileURLWithPath`"
This commit is contained in:
Maurice Parker 2022-07-28 16:19:21 -05:00 committed by GitHub
commit 7683a96de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")!)