Cannot Swipe From Bottom To Top

Hello guys,

While trying to swipe from bottom to top, there is swiping only from from top to bottom or from left to right.

Does somebody know how to use swipe in correct way using appium 1.6.3?

P.S.: I tried all possible combinations but unfortunately there is no success.

Device: iPhone 5
Resolution: Width - 320pts, Height - 568pts
Appium: 1.6.3
Framework: Robotframework
Library: AppiumLibrary
IDE: PyCharm

Did you find any solution?
I had the same scenario.
And I managed to automate it for nexus 5 by using:
driver.swipe(40, 1700, 40, 10, 5000);”.
But, I need to know the correct way to attempt it.

Thanks.