mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 14:53:25 +01:00
[ADD] AppScreenshot view with ImageProcessor to automatically rotate landscape screenshots
This commit is contained in:
committed by
Joe Mattiello
parent
b9177e89c6
commit
6aaadc79e5
@@ -28,15 +28,7 @@ struct AppScreenshotsScrollView: View {
|
||||
SwiftUI.Button {
|
||||
self.selectedScreenshotIndex = i
|
||||
} label: {
|
||||
AsyncImage(url: url) { image in
|
||||
image
|
||||
.resizable()
|
||||
} placeholder: {
|
||||
Rectangle()
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
.aspectRatio(aspectRatio, contentMode: .fit)
|
||||
.cornerRadius(8)
|
||||
AppScreenshot(url: url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user