Fix swipe test

Make the conditions a bit more lenient, since different simulators have different precision. Still tests the fact that `swipe` works. Tested on iOS 6.1, 7.0, 7.1, 8.0, 8.1, 8.2.

Fixes #4136.