pub enum SwipeDirection {
Up,
Down,
Left,
Right,
}Expand description
Maestro yaml direction: semantic (per
[[smix-must-be-superset-of-maestro]]): the direction names what
content the caller wants to see (navigation through content),
NOT the finger gesture direction. Down = “navigate down through
content” = reveal what’s BELOW the current viewport (visually content
moves up, finger gestures up). Mirrors maestro CLI direction: DOWN
semantics.
v6.11 c1 — name “SwipeDirection” predates the convention pin and now
reads as a slight misnomer (the value is the navigation direction,
not the swipe gesture direction). Renaming the enum would ripple
across every adapter/driver/runner crate without semantic gain;
instead the docstring carries the contract. Both runners (swift
XCUITest + Kotlin UiAutomator) map this enum’s wire string to the
inverse finger gesture (e.g. Down → finger up via swipeUp / coord
y 70→30) so the same yaml flow yields the same visual behavior on
both platforms.
Variants§
Up
Navigate up = see what’s above (content moves down; finger gestures down).
Down
Navigate down = see what’s below (content moves up; finger gestures up).
Left
Navigate left = see what’s to the left (content moves right; finger gestures right).
Right
Navigate right = see what’s to the right (content moves left; finger gestures left).
Implementations§
Trait Implementations§
Source§impl Clone for SwipeDirection
impl Clone for SwipeDirection
Source§fn clone(&self) -> SwipeDirection
fn clone(&self) -> SwipeDirection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SwipeDirection
Source§impl Debug for SwipeDirection
impl Debug for SwipeDirection
Source§impl<'de> Deserialize<'de> for SwipeDirection
impl<'de> Deserialize<'de> for SwipeDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for SwipeDirection
impl Display for SwipeDirection
impl Eq for SwipeDirection
Source§impl Hash for SwipeDirection
impl Hash for SwipeDirection
Source§impl PartialEq for SwipeDirection
impl PartialEq for SwipeDirection
Source§fn eq(&self, other: &SwipeDirection) -> bool
fn eq(&self, other: &SwipeDirection) -> bool
self and other values to be equal, and is used by ==.