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