Move tabbar label settings

This commit is contained in:
Thomas Ricouard 2023-12-30 07:34:47 +01:00
parent b4013e39c0
commit 176e4feaf8
2 changed files with 8 additions and 8 deletions

View File

@ -241,14 +241,6 @@ struct DisplaySettingsView: View {
@ViewBuilder
private var platformsSection: some View {
@Bindable var userPreferences = userPreferences
if UIDevice.current.userInterfaceIdiom == .phone {
Section("iPhone") {
Toggle("settings.display.show-tab-label", isOn: $userPreferences.showiPhoneTabLabel)
}
#if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor)
#endif
}
if UIDevice.current.userInterfaceIdiom == .pad {
Section("iPad") {

View File

@ -10,6 +10,7 @@ struct TabbarEntriesSettingsView: View {
@State private var tabs = iOSTabs.shared
var body: some View {
@Bindable var userPreferences = userPreferences
Form {
Section {
Picker("settings.tabs.first-tab", selection: $tabs.firstTab) {
@ -41,6 +42,13 @@ struct TabbarEntriesSettingsView: View {
#if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor)
#endif
Section {
Toggle("settings.display.show-tab-label", isOn: $userPreferences.showiPhoneTabLabel)
}
#if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor)
#endif
}
.navigationTitle("settings.general.tabbarEntries")
#if !os(visionOS)