This commit is contained in:
Neil Alexander 2023-09-03 13:56:07 +01:00
parent 0553f929f6
commit 2cb5eebcd2
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -23,6 +23,7 @@ struct Application: App {
var body: some Scene { var body: some Scene {
WindowGroup { WindowGroup {
NavigationSplitView { NavigationSplitView {
ZStack {
List(selection: $selection) { List(selection: $selection) {
NavigationLink(destination: StatusView()) { NavigationLink(destination: StatusView()) {
HStack { HStack {
@ -49,15 +50,20 @@ struct Application: App {
} }
} }
} }
.listStyle(.sidebar) //.listStyle(.sidebar)
.navigationSplitViewColumnWidth(200) //.navigationSplitViewColumnWidth(200)
Image("YggdrasilLogo") Image("YggdrasilLogo")
.renderingMode(.template)
.resizable() .resizable()
.aspectRatio(contentMode: .fit) .aspectRatio(contentMode: .fit)
.foregroundColor(.primary) .foregroundColor(.primary)
.opacity(0.1) .opacity(0.1)
.padding(.all, 24.0) .frame(maxWidth: 200, alignment: .bottom)
.padding(.all, 24)
}
.navigationSplitViewColumnWidth(200)
.listStyle(.sidebar)
} detail: { } detail: {
StatusView() StatusView()
} }