Play lottie file only on specific index in card SwiftUI
I am trying to achieve to play lottie file
on index based when the card is visible scroll/move it only plays specific lottie file animation not for all other cards. I am using Snapcarousel and passing CardView
.