some fixes
This commit is contained in:
@@ -9,17 +9,15 @@ import SwiftUI
|
||||
|
||||
struct GameSelection: View {
|
||||
var body: some View {
|
||||
NavigationSplitView {
|
||||
NavigationView {
|
||||
List(games) { game in
|
||||
NavigationLink {
|
||||
GameView(game)
|
||||
} label: {
|
||||
GameRow(game)
|
||||
NavigationLink(destination: GameView(game)) {
|
||||
ZStack {
|
||||
GameRow(game)
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Games")
|
||||
} detail: {
|
||||
Text("Select a game")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,5 +20,12 @@ struct GameView: View {
|
||||
|
||||
// Use this for < Xcode 26
|
||||
OldWebView(game.url)
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: .infinity,
|
||||
minHeight: 0,
|
||||
maxHeight: .infinity,
|
||||
alignment: .topLeading
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ struct GameRow: View {
|
||||
HStack {
|
||||
Text(game.name)
|
||||
Spacer()
|
||||
Image(systemName: "chevron.forward")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user