add other settings
This commit is contained in:
parent
52cf7e3b1c
commit
3ae7576c24
@ -409,6 +409,7 @@
|
||||
|
||||
},
|
||||
"Заглушка: Другие настройки" : {
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
@ -1926,6 +1927,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Режим мессенжера" : {
|
||||
|
||||
},
|
||||
"Сборка:" : {
|
||||
"localizations" : {
|
||||
|
||||
19
yobble/Views/Tab/Settings/OtherSettingsView.swift
Normal file
19
yobble/Views/Tab/Settings/OtherSettingsView.swift
Normal 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()
|
||||
}
|
||||
}
|
||||
@ -60,7 +60,7 @@ struct SettingsView: View {
|
||||
Label("Данные", systemImage: "externaldrive")
|
||||
}
|
||||
|
||||
NavigationLink(destination: Text("Заглушка: Другие настройки")) {
|
||||
NavigationLink(destination: OtherSettingsView()) {
|
||||
Label("Другое", systemImage: "ellipsis.circle")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user