Closed brendanw closed 10 months ago
It's reproduced even without the sending the app to background.
this is still occurring in 1.6.11 and I am able to reproduce this in 1.6.2
this is still occurring on the latest versions, @Kashif-E did you find a solution for it?
Please, post a repro, it should have been fixed.
@ahmedsalemelzeiny @elijah-semyonov Verified it again and it's fixed yeah. The issue was that we were using a view controller wrapper in iOS to avoid disposing the compose view controller (old issue) but no need for it now and after removing it everything is working fine 🥳🥳🥳
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Hello, I also ran into the same error while using Kotlin version 1.9.22
and Compose Multiplatform version 1.5.11
. Which Compose Multiplatform version was the fix introduced? Is it one compatible with Kotlin version 1.9.22
? I'm not currently able to go to a higher Kotlin version. Thanks!
Describe the bug A
CMPViewControllerMisuse
error is thrown for a case where it wasn't in compose1.5.11
.Affected platforms Select one of the platforms below:
Versions
To Reproduce" You can reproduce the code using the code from the old template on this branch -> https://github.com/brendanw/compose-multiplatform-template/pull/2
ComposeUIViewController
ComposeUIViewController
callpresent
to present aAVPlayerViewController
AVPlayerViewController
Expected behavior No
CMPViewControllerMisuse
error should be thrown.Screenshots
Additional context N/A