From ca2398e4c7973d4cf2c5371d14a97cede41a2a52 Mon Sep 17 00:00:00 2001 From: Fabian Thies Date: Fri, 3 Feb 2023 18:16:48 +0100 Subject: [PATCH] [FIX] Full screen app screenshot previews --- .../Views/App Detail/AppScreenshotsPreview.swift | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/AltStore/Views/App Detail/AppScreenshotsPreview.swift b/AltStore/Views/App Detail/AppScreenshotsPreview.swift index 8efd9771..1056251d 100644 --- a/AltStore/Views/App Detail/AppScreenshotsPreview.swift +++ b/AltStore/Views/App Detail/AppScreenshotsPreview.swift @@ -28,18 +28,9 @@ struct AppScreenshotsPreview: View { var body: some View { TabView(selection: $index) { ForEach(Array(urls.enumerated()), id: \.offset) { (i, url) in - AsyncImage(url: url) { image in - image - .resizable() - } placeholder: { - Rectangle() - .foregroundColor(Color(.secondarySystemBackground)) - .aspectRatio(aspectRatio, contentMode: .fill) - } - .aspectRatio(aspectRatio, contentMode: .fit) - .cornerRadius(8) - .padding() - .tag(i) + AppScreenshot(url: url, aspectRatio: aspectRatio) + .padding() + .tag(i) } } .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))