What have you tried and where are you running into issues?
First, as a general rule, I use xPath locators as a last resort, they make for “brittle” automation code that can break if the app layout changes. You’re better off using uiAutomatorViewer or the Appium app Inspector to find the element by either AccessibilityId or Id, if you possibly can.
If you’re having issues with the swiping code, I’ve written some examples that might be useful to you here: