mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 00:30:51 +01:00
Merge pull request #3621 from stuartbreckenridge/ios-candidate
switches URL to `fileURLWithPath`
This commit is contained in:
commit
ad51c2c5b6
@ -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")!)
|
||||
|
Loading…
Reference in New Issue
Block a user