Skip to content

Conversation

razvanlitianu
Copy link
Collaborator

@razvanlitianu razvanlitianu commented Sep 25, 2025

📜 Tickets

Jira ticket
Github issue

💡 Description

Animating the view in viewDidAppear was giving the impression that the animation was slow.

🎥 Demos

Before

ScreenRecording_09-26-2025.16-26-43_1.MP4

After

ScreenRecording_09-26-2025.16-35-10_1.MP4
Demo

📝 Checklist

  • I filled in the ticket numbers and a description of my work
  • I updated the PR name to follow our PR naming guidelines
  • I ensured unit tests pass and wrote tests for new code
  • If working on UI, I checked and implemented accessibility (Dynamic Text and VoiceOver)
  • If adding telemetry, I read the data stewardship requirements and will request a data review
  • If adding or modifying strings, I read the guidelines and will request a string review from l10n
  • If needed, I updated documentation and added comments to complex code
  • If needed, I added a backport comment (example @Mergifyio backport release/v150.0)

@razvanlitianu razvanlitianu marked this pull request as ready for review September 25, 2025 13:37
@razvanlitianu razvanlitianu requested a review from a team as a code owner September 25, 2025 13:37
Copy link
Contributor

@cyndichin cyndichin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @razvanlitianu!! Code looks good, but I have some small comments to consider, not blocking so approving. Could we also update the PR to show the before and after animations. It helps reviewers but also if we ever need to revisit this ticket, we can quickly glance at the issue.

Comment on lines 24 to 28
// swiftlint:disable:next unneeded_override
override public func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
// No animation here - it's handled in viewWillAppear to prevent double animation
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to override this at all then? Could we remove?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing it would make the code from the subclass to work meaning it would double the animation from the original BottomSheetViewController. It's strange that we have to do this I know.


override public func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// Move animation from viewDidAppear to viewWillAppear for onboarding
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the animation being removed from viewDidAppear, maybe this comment would be more helpful if we explained why we need to move the animation here and say that we don't want it in viewDidAppear because the animation was slow

@razvanlitianu
Copy link
Collaborator Author

hey @cyndichin, thanks for the review! I uploaded the recordings and updated the comments, I hope they are more suggestive.

@mobiletest-ci-bot
Copy link

Warnings
⚠️

New file OnboardingBottomSheetViewController.swift has 0% test coverage. Please add unit tests. (cc: @cyndichin @yoanarios).

Messages
📖 Project coverage: 38.21%

🧹 Tidy commit

Just 3 file(s) touched. Thanks for keeping it clean and review-friendly!

🙌 Friday high-five

Thanks for pushing us across the finish line this week! 🙌

Client.app: Coverage: 37.31

File Coverage
OnboardingService.swift 70.61%

ComponentLibrary: Coverage: 23.75

File Coverage
OnboardingBottomSheetViewController.swift 0.0% ⚠️
BottomSheetViewController.swift 4.53% ⚠️

Generated by 🚫 Danger Swift against 4e2296c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants