@wait<EOL><INDENT>def swipe(self, direction, focus=None, duration=<NUM_LIT:0.5>):<DEDENT>
try:<EOL><INDENT>duration = float(duration)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(repr(duration)))<EOL><DEDENT>focus = focus or self._focus or '<STR_LIT>'<EOL>dir_vec = self._direction_vector_of(direction)<EOL>origin = self.get_position(focus)<EOL>self.poco.pre_action('<STR_LIT>', self, (origin, dir_vec))<EOL>ret = self.poco.swipe(origin, direction=dir_vec, duration=duration)<EOL>self.poco.post_action('<STR_LIT>', self, (origin, dir_vec))<EOL>return ret<EOL>
Perform a swipe action given by the direction from this UI element. For notices and limitations see
:py:meth:`.click() <poco.proxy.UIObjectProxy.click>`. 

Args:
    direction (2-:obj:`tuple`/2-:obj:`list`/:obj:`str`):  coordinates (x, y) in NormalizedCoordinate system, it
     can be also specified as  'up', 'down', 'left', 'right'. Swipe 'up' is equivalent to [0, -0.1], swipe
     'down' is equivalent to [0, 0.1], swipe 'left' is equivalent to [-0.1, 0] and swipe 'right' is equivalent
     to [0, 0.1]
    focus (2-:obj:`tuple`/2-:obj:`list`/:obj:`str`): see :py:meth:`.click() <poco.proxy.UIObjectProxy.click>`
     for more details
    duration (:py:obj:`float`): time interval in which the action is performed

Raises:
    PocoNoSuchNodeException: raised when the UI element does not exist