forked from hideokamoto/stripe-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PayNow animation jank (stripe#2934)
## Summary When the PaymentSheetViewController appears, it refreshes its UI, including the ConfirmButton's animation state. A race condition arises when the PaymentSheetViewController and the completion of an action simultaneously update the UI, resulting in occasional animation glitches. These occur when we start new animations before the PaymentSheet animations have completed. To resolve this issue, we delay the action's evolution to succeeded/cancelled until 0.2 seconds after the dismissal of the PollingViewController. This allows sufficient time for the animations to finish, preventing conflicts. ## Motivation - Polish ## Testing - Manually ran it 25 times and no longer observed the animation jank ## Changelog N/A
- Loading branch information
1 parent
a66df4a
commit 04cd715
Showing
5 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters