https://kotlinlang.org logo
#compose
Title
# compose
v

Vivek Sharma

01/03/2022, 6:16 PM
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

sorianog

01/03/2022, 8:21 PM
I’d love to see the code (fellow DS fan here 🙂 )
a

Abhinav Suthar

01/03/2022, 10:24 PM
Have you tried changing zIndex when user zooms it?
👍 1
v

Vivek Sharma

01/04/2022, 5:17 AM
@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

sorianog

01/04/2022, 3:01 PM
Curious, are you looking for another way that is better and/or uses an optimized approach?
a

Abhinav Suthar

01/04/2022, 3:35 PM
TBH, I don't know any another way
v

Vivek Sharma

01/04/2022, 6:28 PM
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