mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
41 lines
936 B
Swift
41 lines
936 B
Swift
//
|
|
// BrowseAppPreviewView.swift
|
|
// SideStore
|
|
//
|
|
// Created by Fabian Thies on 20.11.22.
|
|
// Copyright © 2022 Fabian Thies. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import AsyncImage
|
|
import AltStoreCore
|
|
|
|
struct BrowseAppPreviewView: View {
|
|
let storeApp: StoreApp
|
|
|
|
var body: some View {
|
|
VStack(spacing: 16) {
|
|
AppRowView(app: storeApp)
|
|
|
|
if let subtitle = storeApp.subtitle {
|
|
Text(subtitle)
|
|
}
|
|
|
|
if !storeApp.screenshotURLs.isEmpty {
|
|
HStack {
|
|
ForEach(storeApp.screenshotURLs.prefix(2)) { url in
|
|
AppScreenshot(url: url)
|
|
}
|
|
}
|
|
.frame(height: 300)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
//struct BrowseAppPreviewView_Previews: PreviewProvider {
|
|
// static var previews: some View {
|
|
// BrowseAppPreviewView()
|
|
// }
|
|
//}
|