[ADD] AppScreenshot view with ImageProcessor to automatically rotate landscape screenshots

This commit is contained in:
Fabian Thies
2023-01-16 18:59:39 +01:00
committed by Joe Mattiello
parent b9177e89c6
commit 6aaadc79e5
4 changed files with 21 additions and 30 deletions

View File

@@ -24,15 +24,7 @@ struct BrowseAppPreviewView: View {
if !storeApp.screenshotURLs.isEmpty {
HStack {
ForEach(storeApp.screenshotURLs.prefix(2)) { url in
AsyncImage(url: url) { image in
image
.resizable()
.aspectRatio(contentMode: .fit)
} placeholder: {
Color(UIColor.secondarySystemBackground)
.aspectRatio(9/16, contentMode: .fit)
}
.cornerRadius(8)
AppScreenshot(url: url)
}
}
.frame(height: 300)