[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.
- [taler-taler-ios] 03/18: remove Spacers, (continued)
- [taler-taler-ios] 03/18: remove Spacers, gnunet, 2024/02/15
- [taler-taler-ios] 09/18: Model+Deposit, gnunet, 2024/02/15
- [taler-taler-ios] 07/18: feeIsNotZero, secondary color if zero, gnunet, 2024/02/15
- [taler-taler-ios] 18/18: Bump version to 0.9.4 (5), gnunet, 2024/02/15
- [taler-taler-ios] 11/18: More contrast, gnunet, 2024/02/15
- [taler-taler-ios] 14/18: increase contrast, gnunet, 2024/02/15
- [taler-taler-ios] 08/18: cleanup, gnunet, 2024/02/15
- [taler-taler-ios] 10/18: Deposit, gnunet, 2024/02/15
- [taler-taler-ios] 12/18: Plain App Icon, gnunet, 2024/02/15
- [taler-taler-ios] 15/18: Deposit, gnunet, 2024/02/15
- [taler-taler-ios] 16/18: Pop back on tab item,
gnunet <=
- [taler-taler-ios] 13/18: popToRootView Banking, gnunet, 2024/02/15
- [taler-taler-ios] 17/18: Withdraw Title with currency symbol, gnunet, 2024/02/15