How to swipe in latest versions of Appium/Java Client?

I was using older version of java client and it is easy to swipe it that version.
And now i am working with the latest version but driver.swipe is no longer exists.
Please tell me how to use swipe in it.

Thanks in advance.