mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-16 20:26:37 +00:00
Move tabbar label settings
This commit is contained in:
parent
b4013e39c0
commit
176e4feaf8
2 changed files with 8 additions and 8 deletions
|
@ -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") {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue