pub async fn swipe(
host: &Host,
udid: &str,
from: (u32, u32),
to: (u32, u32),
duration_ms: Option<u32>,
) -> Result<()>Expand description
Perform a swipe gesture on an iOS simulator.
Uses IDB (iOS Development Bridge) to send swipe events to the simulator.
§Arguments
udid- The simulator’s unique device identifierfrom- Starting coordinates (x, y)to- Ending coordinates (x, y)duration_ms- Duration of the swipe in milliseconds (optional)
§Errors
Returns an error if IDB is not installed or the swipe fails.