2022-11-23 22:34:02 +01:00
|
|
|
//
|
|
|
|
|
// BrowseAppPreviewView.swift
|
|
|
|
|
// SideStore
|
|
|
|
|
//
|
|
|
|
|
// Created by Fabian Thies on 20.11.22.
|
|
|
|
|
// Copyright © 2022 Fabian Thies. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import SwiftUI
|
2022-11-27 00:26:15 +01:00
|
|
|
import AsyncImage
|
2022-11-23 22:34:02 +01:00
|
|
|
import AltStoreCore
|
|
|
|
|
|
|
|
|
|
struct BrowseAppPreviewView: View {
|
|
|
|
|
let storeApp: StoreApp
|
|
|
|
|
|
|
|
|
|
var body: some View {
|
2022-12-12 19:18:57 +01:00
|
|
|
VStack(spacing: 16) {
|
2022-11-23 22:34:02 +01:00
|
|
|
AppRowView(app: storeApp)
|
|
|
|
|
|
|
|
|
|
if let subtitle = storeApp.subtitle {
|
|
|
|
|
Text(subtitle)
|
2023-02-04 12:55:25 +01:00
|
|
|
.multilineTextAlignment(.center)
|
2022-11-23 22:34:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if !storeApp.screenshotURLs.isEmpty {
|
|
|
|
|
HStack {
|
|
|
|
|
ForEach(storeApp.screenshotURLs.prefix(2)) { url in
|
2023-01-16 18:59:39 +01:00
|
|
|
AppScreenshot(url: url)
|
2022-11-23 22:34:02 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.frame(height: 300)
|
2023-02-04 12:55:25 +01:00
|
|
|
.shadow(radius: 8)
|
2022-11-23 22:34:02 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//struct BrowseAppPreviewView_Previews: PreviewProvider {
|
|
|
|
|
// static var previews: some View {
|
|
|
|
|
// BrowseAppPreviewView()
|
|
|
|
|
// }
|
|
|
|
|
//}
|