iOs real device swipe not working for appium version 1.6.3 and 1.6.5

For iOS real device with os version 9.3 and above. Tried on appium versions 1.6.3 and 1.6.5.

Tried below commands
self.wd.execute_script(“mobile: swipe”, {“direction”: ‘up’})
self.wd.swipe(100, 500, 100, 100).

Still swipe is not working.

Am i missing anything?

There are many posts on this topic, please do quick search and also install latest version of appium 1.7.1

Scroll to element in Python:

el = self.driver.find_element_by_id("Logout")
self.driver.execute_script('mobile: scroll', {"element": el, "toVisible": True})