mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[FIX] Full screen app screenshot previews
This commit is contained in:
@@ -28,18 +28,9 @@ struct AppScreenshotsPreview: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
TabView(selection: $index) {
|
TabView(selection: $index) {
|
||||||
ForEach(Array(urls.enumerated()), id: \.offset) { (i, url) in
|
ForEach(Array(urls.enumerated()), id: \.offset) { (i, url) in
|
||||||
AsyncImage(url: url) { image in
|
AppScreenshot(url: url, aspectRatio: aspectRatio)
|
||||||
image
|
.padding()
|
||||||
.resizable()
|
.tag(i)
|
||||||
} placeholder: {
|
|
||||||
Rectangle()
|
|
||||||
.foregroundColor(Color(.secondarySystemBackground))
|
|
||||||
.aspectRatio(aspectRatio, contentMode: .fill)
|
|
||||||
}
|
|
||||||
.aspectRatio(aspectRatio, contentMode: .fit)
|
|
||||||
.cornerRadius(8)
|
|
||||||
.padding()
|
|
||||||
.tag(i)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
|
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
|
||||||
|
|||||||
Reference in New Issue
Block a user