From 232fd26b04d9f4b7290dae2e76b60d67c50f3099 Mon Sep 17 00:00:00 2001 From: fmodf Date: Thu, 17 Oct 2024 19:41:57 +0200 Subject: [PATCH] wip --- .../View/Main/Settings/SettingsScreen.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ConversationsClassic/View/Main/Settings/SettingsScreen.swift b/ConversationsClassic/View/Main/Settings/SettingsScreen.swift index e7f8723..263f280 100644 --- a/ConversationsClassic/View/Main/Settings/SettingsScreen.swift +++ b/ConversationsClassic/View/Main/Settings/SettingsScreen.swift @@ -118,13 +118,19 @@ struct SettingsScreen: View { @ViewBuilder private var addAccountSelector: some View { Button { - print("Add existing account") + router.showScreen(.push) { _ in + LoginScreen() + .navigationBarHidden(true) + } } label: { Text(L10n.Settings.Section.Accounts.addExists) } Button { - print("Add new account") + router.showScreen(.push) { _ in + RegistrationScreen() + .navigationBarHidden(true) + } } label: { Text(L10n.Settings.Section.Accounts.addNew) }