Skip to content

Commit 80c4bd8

Browse files
Update README.md
1 parent 29abd7f commit 80c4bd8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,6 @@ view.spec.action.triggerTap()
170170
view.spec.action.triggerTap(taps: 3, touches: 2)
171171
```
172172
------
173-
Simulate swipe on a view with UISwipeGestureRecognizer(s)
174-
```Swift
175-
view.spec.action.triggerSwipe(direction: .up)
176-
```
177-
------
178173
Simulate tap on a UITableView cell
179174
```Swift
180175
tableView.spec.action.tap(row: 6)
@@ -189,6 +184,14 @@ collectionView.spec.action.tap(item: 3)
189184
collectionView.spec.action.tap(item: 2, section: 1)
190185
```
191186

187+
#### Simulating swipes
188+
189+
Simulate swipe on a view with UISwipeGestureRecognizer(s)
190+
```Swift
191+
view.spec.action.triggerSwipe(direction: .up)
192+
```
193+
------
194+
192195
#### Executing gesture recognizers (not available on tvOS)
193196

194197
Execute action on any UIGestureRecognizer

0 commit comments

Comments
 (0)