ios_rotate
Two-finger rotation (twist) about (x,y) on an iOS device — the gesture maps, photo editors and canvas apps listen for. Positive degrees turns clockwise on screen, negative anticlockwise. The fingers follow the ARC of a circle rather than a straight line, which is what a rotation recogniser needs. Coordinates are screen points. IN HID MODE (iOS 18+) the rotation is centred exactly on (x,y) and any angle up to 360° works. OTHERWISE it falls back to the native rotate gesture, which turns the ACTIVE APP about its own centre: (x,y) is ignored there. Any angle works on both paths. Fine for a full-screen map or canvas; check ios_hid_status first if you need the rotation centred on a specific control. Requires an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Rotation centre X (screen points) | |
| y | Yes | Rotation centre Y (screen points) | |
| norm | No | If true, x/y (and path points) are 0..1 FRACTIONS of the screen — pass `pixelInScreenshot ÷ screenshotSize` directly (scale-free, matches the frontend, avoids point-guessing). Default false = iOS screen points. | |
| udid | Yes | iOS device UDID | |
| input | No | Input path. 'auto' (default) drives the gesture through the automation session. 'hid' drives it through the direct input path instead, which needs no automation session — it reports 'no HID available' on iOS 17.x or with no tunnel. | |
| degrees | Yes | Turn in degrees; positive is clockwise on screen | |
| durationMs | No | Gesture duration in ms (default: 400) |