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 @ViewBuilder
private var platformsSection: some View { private var platformsSection: some View {
@Bindable var userPreferences = userPreferences @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 { if UIDevice.current.userInterfaceIdiom == .pad {
Section("iPad") { Section("iPad") {

View File

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