Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to do an edge swipe in iOS simulator?

iOS 7 provides for a UIScreenEdgePanGestureRecognizer which detects swipes in from edges of the screen. Can this gesture be simulated using the iOS7 simulator in Xcode? Clicking and dragging outside the screen area just moves the whole simulator frame around.

like image 771
user2709279 Avatar asked Oct 01 '13 22:10

user2709279


People also ask

How do you swipe in iOS simulator?

1- Place the pointer at the start position. 2- Hold the mouse button. 3- Move the pointer in the swipe direction and release the mouse button.

How do you inspect Iphone simulator?

You'll need to go to Settings > Advanced and check the Show Debug Menu option. Then you'll see the option to open the web inspector for the Simulator right from that menu. With the Web Inspector open, you can debug inside the Simulator just like you could right in a desktop browser with DevTools.

How do you open split view on iPad simulator?

Show activity on this post. Drag the other app you like from the dock but don't let go of your finger until you completely pull it to the edge of the screen and you see your iPad showing a nice split view. If you let go too quick then the app would just show on top of the other.


2 Answers

On Simulator Version 11.4 I see the option

  • Window -> Show Device Bezels

which shows a virtual device frame around the simulated phone:

enter image description here

This allows to start the gesture "outside" of the screen. I could successfully trigger a UIScreenEdgePanGestureRecognizer from the left.

like image 191
Bruno Bieri Avatar answered Sep 23 '22 23:09

Bruno Bieri


You don't have to swipe across the edges to trigger a UIScreenEdgePanGestureRecognizer, just start very close to the edge. It works if I start not more than ~15 points from the edge.

(this if for the simulator. I never tested this on a device)


As a side note: You have to create a gestureRecognizer for each edge. You can't OR edges together, so UIRectEdgeAll won't work.

like image 40
Matthias Bauch Avatar answered Sep 24 '22 23:09

Matthias Bauch