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))