From c453446c898dc1dd47f8d5cdcbe450d35299e391 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 31 May 2023 17:27:27 +0200 Subject: [PATCH] Improve UI --- LeCountdown/Views/StartView.swift | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/LeCountdown/Views/StartView.swift b/LeCountdown/Views/StartView.swift index b0ee5c8..6bb45b3 100644 --- a/LeCountdown/Views/StartView.swift +++ b/LeCountdown/Views/StartView.swift @@ -143,9 +143,12 @@ struct DurationSheetView: View { var body: some View { VStack(alignment: .leading) { - Text("Duration").padding([.leading, .top]) - TimePickerView(duration: self.$duration) - .presentationDetents([.height(240.0)]) + NavigationStack { + TimePickerView(duration: self.$duration) + .navigationTitle("Duration") + .navigationBarTitleDisplayMode(.inline) + } + .presentationDetents([.height(240.0)]) } } @@ -164,8 +167,12 @@ struct SoundButtonView: View { Image(systemName: "music.note") Text(self.soundModel.soundSelection(short: true)) }.sheet(isPresented: $showSoundSheet) { - PlaylistsView(model: self.soundModel, - catalog: .ring) + NavigationStack { + PlaylistsView(model: self.soundModel, + catalog: .ring) + .navigationTitle("Sounds") + .navigationBarTitleDisplayMode(.inline) + } .presentationDetents([.height(320.0)]) } }