[ios] Hide voice guidance test button when voice guidance is disabled

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-07-13 16:22:45 +02:00
parent edb995ceed
commit 38d5496258

View File

@@ -92,6 +92,7 @@ struct SettingsNavigationView: View {
} header: { } header: {
Text("pref_tts_title") Text("pref_tts_title")
} footer: { } footer: {
if shouldProvideVoiceRouting {
Button { Button {
Settings.playVoiceRoutingTest() Settings.playVoiceRoutingTest()
} label: { } label: {
@@ -106,6 +107,7 @@ struct SettingsNavigationView: View {
.padding([.top, .bottom]) .padding([.top, .bottom])
.listRowInsets(.init(top: 0, leading: 0, bottom: 0, trailing: 0)) .listRowInsets(.init(top: 0, leading: 0, bottom: 0, trailing: 0))
} }
}
Section { Section {
Toggle("avoid_tolls", isOn: $shouldAvoidTollRoadsWhileRouting) Toggle("avoid_tolls", isOn: $shouldAvoidTollRoadsWhileRouting)