Compose Multiplatform does not yet support shared ...
# compose
a
Compose Multiplatform does not yet support shared element transitions right?
a
I am trying to find the modifier for .sharedElement and its refusingt to find it for some reason
It is either in the android target only or I am missing something
I am on 1.7.0 so it should be there
s
The IDE won't suggest it unless you are inside the right scope. Here's the modifier https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]aredElement&sq=&ss=androidx%2Fplatform%2Fframeworks%2Fsupport As you can see, it's accessible only inside
SharedTransitionScope
. To get that scope, there's
SharedTransitionLayout
which gives you it. Look at this https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:navigati[…]redElementSampl&ss=androidx%2Fplatform%2Fframeworks%2Fsupport for some samples of this feature being used.
a
Yes thank you