mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[ios] Hide voice guidance test button when voice guidance is disabled
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
@@ -92,19 +92,21 @@ struct SettingsNavigationView: View {
|
|||||||
} header: {
|
} header: {
|
||||||
Text("pref_tts_title")
|
Text("pref_tts_title")
|
||||||
} footer: {
|
} footer: {
|
||||||
Button {
|
if shouldProvideVoiceRouting {
|
||||||
Settings.playVoiceRoutingTest()
|
Button {
|
||||||
} label: {
|
Settings.playVoiceRoutingTest()
|
||||||
Text("pref_tts_test_voice_title")
|
} label: {
|
||||||
.bold()
|
Text("pref_tts_test_voice_title")
|
||||||
.lineLimit(1)
|
.bold()
|
||||||
.padding(4)
|
.lineLimit(1)
|
||||||
.frame(maxWidth: .infinity)
|
.padding(4)
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
|
}
|
||||||
|
.buttonStyle(BorderedButtonStyle())
|
||||||
|
.foregroundStyle(.alternativeAccent)
|
||||||
|
.padding([.top, .bottom])
|
||||||
|
.listRowInsets(.init(top: 0, leading: 0, bottom: 0, trailing: 0))
|
||||||
}
|
}
|
||||||
.buttonStyle(BorderedButtonStyle())
|
|
||||||
.foregroundStyle(.alternativeAccent)
|
|
||||||
.padding([.top, .bottom])
|
|
||||||
.listRowInsets(.init(top: 0, leading: 0, bottom: 0, trailing: 0))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
|
|||||||
Reference in New Issue
Block a user