touchInputMultiTouchSwipeWithVelocity
@Sampled
fun touchInputMultiTouchSwipeWithVelocity() {
// Pinch open (zoom in) with two fingers starting at the center and moving outwards with
// velocity
composeTestRule.onNodeWithTag("myComponent").performTouchInput {
val swipe0 = SwipeInfo(start = center, end = center - Offset(200f, 0f), endVelocity = 1000f)
val swipe1 = SwipeInfo(start = center, end = center + Offset(200f, 0f), endVelocity = 1000f)
multiTouchSwipeWithVelocity(listOf(swipe0, swipe1))
}
}