From 151d2e5c8c4617bba6b3f48fce41fc97ba8e51f4 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Fri, 20 Oct 2023 17:15:27 -0500 Subject: [PATCH] Uses constant 5pt corner radius for non-rounded screenshots Fixes iPad corners appearing too rounded. --- .../Screenshots/AppScreenshotCollectionViewCell.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AltStore/App Detail/Screenshots/AppScreenshotCollectionViewCell.swift b/AltStore/App Detail/Screenshots/AppScreenshotCollectionViewCell.swift index efdabdfc..e85b95f1 100644 --- a/AltStore/App Detail/Screenshots/AppScreenshotCollectionViewCell.swift +++ b/AltStore/App Detail/Screenshots/AppScreenshotCollectionViewCell.swift @@ -96,8 +96,7 @@ class AppScreenshotCollectionViewCell: UICollectionViewCell } else { - let cornerRadius = self.imageView.bounds.width / 25.0 // Based on iPhone 8 - self.imageView.layer.cornerRadius = cornerRadius + self.imageView.layer.cornerRadius = 5 } } }