Assigned
Status Update
Comments
ro...@google.com <ro...@google.com> #2
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
No update yet.
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
Description
Jetpack Compose version: 1.7.0-beta04 Jetpack Compose component used: Shared elements
When working with shared elements, it's a common use case to be able to conditionally apply shared element modifiers if a Scope exists.
For example, if we didn't have a scope because the screen is launched from a deep link, creating the "safe" versions of modifiers is a bit cumbersome because there are a few things:
rememberSharedContentState
requires being in aSharedTransitionScope
, so you need to just hope that the shared element works as you don't have access to the object anymore to checkisMatch
on it.safeSharedElement
and then I ended up needing to duplicatesafeRenderInSharedTransitionScopeOverlay
, and I couldn't figure out how to provide a defaultrenderInOverlay
parameter.