Swipe issues with dynamic height elements

I have facing some issues regarding swipe gesture using driver.swipe(50, 278, 50, 200)…

actually, I have a list of elements with dynamic height in which many elements are off screen and to visit/capture those elements I have to swipe. But some times driver.swipe method not swipe the list with exact height given accordingly.

I am stuck in this situation since 2 days. Please help me OR provide some solution.