Skip to content

Commit 206fe99

Browse files
committed
tune(wallet): card animation
1 parent 685ce38 commit 206fe99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎submodules/TelegramUI/Components/Wallet/PeerWalletScreen/Sources/PeerWalletScreen.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ private final class PeerWalletOverlayComponent: Component {
475475
self.applyProgress()
476476
self.alpha = 1.0
477477
self.isDismissing = false
478-
self.animate(to: 1.0, duration: UIAccessibility.isReduceMotionEnabled ? 0.25 : (self.usesFlight ? 1.05 : 0.65), completion: { [weak self] in
478+
self.animate(to: 1.0, duration: UIAccessibility.isReduceMotionEnabled ? 0.25 : (self.usesFlight ? 0.79 : 0.65), completion: { [weak self] in
479479
self?.setNoticeVisible(true, duration: 0.2)
480480
})
481481
}
@@ -494,7 +494,7 @@ private final class PeerWalletOverlayComponent: Component {
494494
self.usesFlight = true
495495
self.isDismissing = self.progress >= 1.0
496496
self.applyProgress()
497-
self.animate(to: 0.0, duration: max(0.08, 0.4 * Double(self.progress)), completion: completion)
497+
self.animate(to: 0.0, duration: max(0.06, 0.3 * Double(self.progress)), completion: completion)
498498
} else {
499499
// Preserve the current pose if the source disappeared during the flight.
500500
self.animator?.invalidate()

0 commit comments

Comments
 (0)