gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 16/18: Pop back on tab item


From: gnunet
Subject: [taler-taler-ios] 16/18: Pop back on tab item
Date: Thu, 15 Feb 2024 07:02:16 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 420cdf349df8a088e9219fab1767a88aa565c59d
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Feb 15 06:59:30 2024 +0100

    Pop back on tab item
---
 TalerWallet1/Views/Main/MainView.swift | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Views/Main/MainView.swift 
b/TalerWallet1/Views/Main/MainView.swift
index 46648dc..0c22e73 100644
--- a/TalerWallet1/Views/Main/MainView.swift
+++ b/TalerWallet1/Views/Main/MainView.swift
@@ -118,15 +118,23 @@ extension MainView {
                 self.selectedTab
             } set: { tappedTab in
                 if tappedTab == self.selectedTab {
-                    //User tapped on the tab twice == Pop to root view
+                    // User tapped on the tab twice == Pop to root view
+                    switch tappedTab {
+                        case .balances:
+                            ViewState.shared.popToRootView(nil)
+                        case .exchanges:
+                            ViewState2.shared.popToRootView(nil)
+                        default:
+                            break
+                    }
 //                    if homeNavigationStack.isEmpty {
                         //User already on home view, scroll to top
 //                    } else {
 //                        homeNavigationStack = []
 //                    }
+                } else {    // Set the tab to the tabbed tab
+                    self.selectedTab = tappedTab
                 }
-                //Set the tab to the tabbed tab
-                self.selectedTab = tappedTab
             }
         }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]