taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 4c5c968ee348b92793277a53746f49636362cc8e
parent f3e6874b0563dc10862cc40387dfd61ff326e9a5
Author: Marc Stibane <marc@taler.net>
Date:   Wed,  4 Dec 2024 07:09:25 +0100

bounce

Diffstat:
MTalerWallet1/Controllers/PublicConstants.swift | 2+-
MTalerWallet1/Views/HelperViews/TabBarView.swift | 3+++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Controllers/PublicConstants.swift b/TalerWallet1/Controllers/PublicConstants.swift @@ -14,7 +14,7 @@ public let HUF_4217 = "HUF" // ISO-4217 Hungarian Forint public let TAPPED = 4 // how often you need to tap on the Actions button before it loses its label public let DRAGGED = 2 // #times to drag to stop the auto-dragging public let DRAGDELAY = 0.5 -public let DRAGDURATION = 0.25 +public let DRAGDURATION = 0.45 public let DRAGSPEED = 0.1 public let MAXRECENT = 4 // # of rows in Recent Transactions diff --git a/TalerWallet1/Views/HelperViews/TabBarView.swift b/TalerWallet1/Views/HelperViews/TabBarView.swift @@ -102,6 +102,9 @@ struct TabBarView: View { offset.height = -50 } withAnimation(Animation.easeOut(duration: DRAGSPEED).delay(DRAGDELAY + DRAGDURATION + DRAGSPEED)) { + offset.height = 10 + } + withAnimation(Animation.easeOut(duration: DRAGSPEED/2).delay(DRAGDELAY + DRAGDURATION + 2.5*DRAGSPEED)) { offset.height = 0 } }