Move tabbar label settings
This commit is contained in:
parent
b4013e39c0
commit
176e4feaf8
|
@ -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") {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue