How to swipe in 7.0

Hai,
Im using appium java client 7.0 and i do realize driver.swipe() was depreciated
I tried out Touchactions & using Javascript executer, seems like it doesn’t work either

Can someone tell how to swipe the screen (if you have already tried out in 7.0 and if any method works for you) ?