diff --git a/yobble/Views/Tab/Settings/OtherSettingsView.swift b/yobble/Views/Tab/Settings/OtherSettingsView.swift index 0975cf4..3a87cea 100644 --- a/yobble/Views/Tab/Settings/OtherSettingsView.swift +++ b/yobble/Views/Tab/Settings/OtherSettingsView.swift @@ -2,6 +2,7 @@ import SwiftUI struct OtherSettingsView: View { @AppStorage("messengerModeEnabled") private var isMessengerModeEnabled: Bool = false + @AppStorage("chatBubbleDecorationsEnabled") private var areBubbleDecorationsEnabled: Bool = true var body: some View { Form { @@ -15,6 +16,17 @@ struct OtherSettingsView: View { .foregroundColor(.secondary) } .padding(.vertical, 8) + + VStack(alignment: .leading, spacing: 4) { + Toggle(NSLocalizedString("Рожки и ножки у сообщений", comment: ""), isOn: $areBubbleDecorationsEnabled) + .toggleStyle(SwitchToggleStyle(tint: .accentColor)) + Text(areBubbleDecorationsEnabled + ? NSLocalizedString("Сообщения будут с рожками и ножками.", comment: "") + : NSLocalizedString("Сообщения станут обычными закругленными облачками.", comment: "")) + .font(.footnote) + .foregroundColor(.secondary) + } + .padding(.vertical, 8) } .navigationTitle(Text(NSLocalizedString("Другое", comment: ""))) }