add other settings

This commit is contained in:
cheykrym 2025-10-23 20:19:57 +03:00
parent 52cf7e3b1c
commit 3ae7576c24
3 changed files with 24 additions and 1 deletions

View File

@ -409,6 +409,7 @@
},
"Заглушка: Другие настройки" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
@ -1926,6 +1927,9 @@
}
}
}
},
"Режим мессенжера" : {
},
"Сборка:" : {
"localizations" : {

View File

@ -0,0 +1,19 @@
import SwiftUI
struct OtherSettingsView: View {
@AppStorage("messengerModeEnabled") private var isMessengerModeEnabled: Bool = false
var body: some View {
Form {
Toggle(NSLocalizedString("Режим мессенжера", comment: ""), isOn: $isMessengerModeEnabled)
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
}
.navigationTitle(Text(NSLocalizedString("Другое", comment: "")))
}
}
#Preview {
NavigationView {
OtherSettingsView()
}
}

View File

@ -60,7 +60,7 @@ struct SettingsView: View {
Label("Данные", systemImage: "externaldrive")
}
NavigationLink(destination: Text("Заглушка: Другие настройки")) {
NavigationLink(destination: OtherSettingsView()) {
Label("Другое", systemImage: "ellipsis.circle")
}
}