JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.81k stars 1.15k forks source link

[iOS] Composable doesn't recompose when screen orientation changes #3215

Open JunkFood02 opened 1 year ago

JunkFood02 commented 1 year ago

Describe the bug Composable doesn't recompose when screen orientation changes

Affected platforms Select one of the platforms below:

Versions Using the Compose for iOS template

To Reproduce Steps and/or the code snippet to reproduce the behavior: Add println("Screen rotated!") in the App() function, then rotate the iOS simulator (command + left/right) The message shows as expected on Android emulator but not on a iOS simulator

Expected behavior Composable recompose when screen orientation changes on iOS

Additional context Might be a duplicate of #2855

sergeshustoff commented 1 month ago

Any workarounds for this?

okushnikov commented 3 days ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.