Don't scale up icons anymore. It was causing a weird effect where in some visible views the source icon was larger than in other.

This commit is contained in:
Maurice Parker
2020-07-21 18:25:54 -05:00
parent 9d4f34bb7c
commit f7dec4cf23
3 changed files with 1 additions and 13 deletions

View File

@@ -39,11 +39,7 @@ struct IconImageView: View {
let newSize: CGSize
if imageSize.height == imageSize.width {
if imageSize.height >= viewSize.height * 0.75 {
newSize = CGSize(width: viewSize.width, height: viewSize.height)
} else {
newSize = CGSize(width: imageSize.width, height: imageSize.height)
}
return imageSize
} else if imageSize.height > imageSize.width {
let factor = viewSize.height / imageSize.height
let width = imageSize.width * factor