[FIX] Full screen app screenshot previews

This commit is contained in:
Fabian Thies
2023-02-03 18:16:48 +01:00
parent b8f02d2152
commit ca2398e4c7

View File

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