mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-25 08:30:41 +00:00
Fix invalid images
This commit is contained in:
parent
738180665e
commit
9e1b1780c9
1 changed files with 4 additions and 0 deletions
|
@ -243,6 +243,10 @@ private struct FeaturedImagePreView: View {
|
||||||
let height = media.meta?.original?.height
|
let height = media.meta?.original?.height
|
||||||
else { return nil }
|
else { return nil }
|
||||||
|
|
||||||
|
guard width != 1 && height != 1 else {
|
||||||
|
return .init(width: 800, height: 600)
|
||||||
|
}
|
||||||
|
|
||||||
return .init(width: CGFloat(width), height: CGFloat(height))
|
return .init(width: CGFloat(width), height: CGFloat(height))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue