I am implementing PinchToZoom in my app, I am able...
# compose
v
I am implementing PinchToZoom in my app, I am able to reach somewhere taking some help from @Albert Chang Now I am using that in
LazyColumn
and having
Zoomable - my custom composable having pinch to zoom
as each item in
items{}
So when I zoom the first item, it is showing behind others , I think they are being stacked inside
Box
, so how can I overcome this thing? See this 👇
If you want to see the code, let me know
s
I’d love to see the code (fellow DS fan here 🙂 )
a
Have you tried changing zIndex when user zooms it?
👍 1
v
@Abhinav Suthar what is zIndex? I don't know , okay just let me share code
https://github.com/V9vek/PinchToZoom You can see the code here! and let me know the things
@sorianog yeah I am a fan of DS too, I have added my repo please take a look
👀 1
@Abhinav Suthar look at this, it works fine now using
zIndex
but take a look at code once, if I can do it another way. Thank you
s
Curious, are you looking for another way that is better and/or uses an optimized approach?
a
TBH, I don't know any another way
v
Super big thanks to Albert for helping and updating his repo also I have created this repo to demonstrate pinch to zoom Take a look: https://github.com/V9vek/PinchToZoom