Skip to content

Implement iOS default NavHost transition animation close to native. #1861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 21, 2025

Conversation

terrakok
Copy link
Member

@terrakok terrakok commented Feb 19, 2025

Implement iOS default NavHost transition animation close to native by default:

  1. if developer changes a NavHost default animation spec then all iOS defaults will be erased
  2. slide animation between screens
  3. dimming of the previous screen
  4. back gesture acts for a single edge depending on the layout direction
bh2.mp4

Fixes https://youtrack.jetbrains.com/issue/CMP-4528

Release Notes

Features - iOS

  • Default androidx.navigation transition animation on iOS is as close as possible to the iOS back gesture.

Known issues - iOS

  • (prerelease fix) Back gesture may remain stuck in the middle, the fix will be available in the next pre-release version.

@terrakok terrakok merged commit a04da5d into jb-main Feb 21, 2025
6 of 7 checks passed
@terrakok terrakok deleted the ios-nav-anim branch February 21, 2025 09:22
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.

5 participants