-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
when camera capture or closed, on the root screen will auto disappear. #3558
Comments
ComposeScene is now destroyed when UIViewController disappears from the screen.. In your case, you can restructure the code to keep your |
Thank you, I have finally fixed my problem. However, how can I avoid having Compose recreate the screen? When I take a photo and receive a response, the image doesn't show up in the UI, and I lose all the data. |
You can't avoid it as of now (we are not sure about if we want to bring UIViewController-lifetime bound behavior due to many problems it brings for Compose). Regarding the image loss, I don't see hard blocks for working around this problem. |
Thank you. |
Sorry, the link was broken, fixed it now. |
Describe the bug
Hi, my problem is when camera capture or closed, on the root screen will auto disappear.
This is the Repository: https://github.com/NakiriYuuzu/DebugKmm
Affected platforms
Select one of the platforms below:
If the bug is Android-only, report it in the Jetpack Compose tracker
Versions
Screenshots
https://drive.google.com/file/d/1Wo_nmCDCGiZnXYVHsZBfkckDIT7UGO5r/view?usp=sharing
Additional context
when the compose version at 1.4.0 is working fine.
The text was updated successfully, but these errors were encountered: