main
Laurent 2 years ago
parent 1289616c01
commit c453446c89
  1. 17
      LeCountdown/Views/StartView.swift

@ -143,9 +143,12 @@ struct DurationSheetView: View {
var body: some View { var body: some View {
VStack(alignment: .leading) { VStack(alignment: .leading) {
Text("Duration").padding([.leading, .top]) NavigationStack {
TimePickerView(duration: self.$duration) TimePickerView(duration: self.$duration)
.presentationDetents([.height(240.0)]) .navigationTitle("Duration")
.navigationBarTitleDisplayMode(.inline)
}
.presentationDetents([.height(240.0)])
} }
} }
@ -164,8 +167,12 @@ struct SoundButtonView: View {
Image(systemName: "music.note") Image(systemName: "music.note")
Text(self.soundModel.soundSelection(short: true)) Text(self.soundModel.soundSelection(short: true))
}.sheet(isPresented: $showSoundSheet) { }.sheet(isPresented: $showSoundSheet) {
PlaylistsView(model: self.soundModel, NavigationStack {
catalog: .ring) PlaylistsView(model: self.soundModel,
catalog: .ring)
.navigationTitle("Sounds")
.navigationBarTitleDisplayMode(.inline)
}
.presentationDetents([.height(320.0)]) .presentationDetents([.height(320.0)])
} }
} }

Loading…
Cancel
Save