You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when triggering a navigation action pushing user outside of the app, if user returns again to the same screen, the animation effect that was happening just before the user had left are stuck frozen.
Affected platforms
iOS
Versions
Kotlin version*: 1.9.22
Compose Multiplatform version*: 1.5.12
OS version(s)* (required for Desktop and iOS issues): ios 16.4, 17.2.1
OS architecture (x86 or arm64):
Device (model or simulator for iOS issues): iPhone 14, iPhone XR
JDK (for desktop issues):
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
Create a screen that has a trigger that has animation effect like a button (with ripple effect) or a toggle switcher which navigates the user out of the app
trigger the action
on returning to the screen, sometimes the trigger animation is stuck frozen
Expected behavior
the animation effect should be gone. Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
## Proposed Changes
Invalidate compose scene when the app goes foreground to trigger redraw.
The intent is to avoid the situation where last presented frames are
discarded due to the app going background, leaving the visual content in
older state.
## Testing
Test: Demo/IosBugs/AnimationFreezeBug the visual state always matches
the animation final state when app goes to foreground.
## Issues Fixed
Fixes: JetBrains/compose-multiplatform#4566
Describe the bug
when triggering a navigation action pushing user outside of the app, if user returns again to the same screen, the animation effect that was happening just before the user had left are stuck frozen.
Affected platforms
Versions
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
Expected behavior
![Simulator Screenshot - iPhone 14 - 2024-04-01 at 00 29 29](https://private-user-images.githubusercontent.com/147002455/318482266-f3573557-0e34-452a-ba14-0000508953dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyNDUyNzYsIm5iZiI6MTcyMDI0NDk3NiwicGF0aCI6Ii8xNDcwMDI0NTUvMzE4NDgyMjY2LWYzNTczNTU3LTBlMzQtNDUyYS1iYTE0LTAwMDA1MDg5NTNkYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwNlQwNTQ5MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NzdiOTg3ZmM2ZGRiNTE1NTk1OTQyNjM3MDQxNDY3ZGFmZjIzMTI2MDE4ZGExY2Q3MzM3MGVhODBlNTlhYWFlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.hQA5ew4dLbHoe952VwcYAsZn_GKBIUlV_r-iQqYYXMw)
![Simulator Screenshot - iPhone 14 - 2024-04-01 at 11 29 57](https://private-user-images.githubusercontent.com/147002455/318483948-190c672e-2483-4a66-af36-69c105004b58.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyNDUyNzYsIm5iZiI6MTcyMDI0NDk3NiwicGF0aCI6Ii8xNDcwMDI0NTUvMzE4NDgzOTQ4LTE5MGM2NzJlLTI0ODMtNGE2Ni1hZjM2LTY5YzEwNTAwNGI1OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwNlQwNTQ5MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMmFlNmZmMzY2M2ExODA2MWIyZTU0M2I3OGVkZTBlMmY2YjllMTcyMmQyMjUwMTlkN2U1MWEwMzMyODY2ZjI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Av2wEHhVMtowV-yvhCGRF7z3cq_ZoQpZDyXHawGs3qo)
the animation effect should be gone.
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: