From b7a1bd1d558eb954968668b8d69358d4d9faaa23 Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Wed, 27 Dec 2023 13:07:20 -0500 Subject: Refactoring + make itemInfo more visible --- Jel/Views/Dashboard/DashboardView.swift | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'Jel/Views/Dashboard') diff --git a/Jel/Views/Dashboard/DashboardView.swift b/Jel/Views/Dashboard/DashboardView.swift index a29d2f5..b3c223b 100644 --- a/Jel/Views/Dashboard/DashboardView.swift +++ b/Jel/Views/Dashboard/DashboardView.swift @@ -12,23 +12,23 @@ struct DashboardView: View { @State var showingSettingsSheet: Bool = false var body: some View { - NavigationStack { - VStack { + VStack { + NavigationStack { DashboardLibraryView() + .navigationTitle("Home") } - .navigationTitle("Home") - .toolbar { - ToolbarItem(placement: .topBarTrailing) { - Button { - showingSettingsSheet.toggle() - } label: { - Label("Settings", systemImage: "gear") - } + } + .toolbar { + ToolbarItem(placement: .topBarTrailing) { + Button { + showingSettingsSheet.toggle() + } label: { + Label("Settings", systemImage: "gear") } } - .sheet(isPresented: $showingSettingsSheet) { - SettingsView(showingSettingsView: $showingSettingsSheet) - } + } + .sheet(isPresented: $showingSettingsSheet) { + SettingsView(showingSettingsView: $showingSettingsSheet) } } } -- cgit v1.2.3