This commit is contained in:
lizzie
2026-03-31 03:27:44 +00:00
parent 7324d28ff6
commit 378abc50ce
26 changed files with 80 additions and 435 deletions
+33 -1
View File
@@ -7,7 +7,39 @@ import SwiftUI
import Foundation
import UIKit
import UniformTypeIdentifiers
import AppUI
struct GameButtonListView: View {
var game: EmulationGame
@Environment(\.colorScheme) var colorScheme
var body: some View {
HStack(spacing: 15) {
if let image = UIImage(data: game.imageData) {
Image(uiImage: image)
.resizable()
.frame(width: 60, height: 60)
.cornerRadius(8)
} else {
Image(systemName: "photo")
.resizable()
.frame(width: 60, height: 60)
.cornerRadius(8)
}
VStack(alignment: .leading, spacing: 4) {
Text(game.title)
.font(.headline)
.foregroundColor(colorScheme == .dark ? Color.white : Color.black)
Text(game.developer)
.font(.subheadline)
.foregroundColor(.gray)
}
Spacer()
}
.padding(.vertical, 8)
}
}
struct GameListView: View {
@State var core: Core