Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS simulator inertia while scrolling

I recently upgraded my laptop to Macbook M1 pro. I have a scroll view and it used to scroll with inertia when I use three finger to drag on my old Macbook air.

Now with the M1 chip there is no inertia when scrolling. I changed the iOS simulator to use Rosetta but still the scroll is not smooth like it used to be before.

Also is there any way to swipe a scroll view in iOS simulator via two finger swipe like we use in browser? My app has lots of scrollview and it's important to me.

like image 997
Gracie williams Avatar asked Jul 02 '21 10:07

Gracie williams


People also ask

How do I scroll in iOS simulator?

You can click the trackpad and drag (as other folks have said), or if you have "Three finger drag" enabled in Trackpad preferences, you can scroll with three fingers. Show activity on this post. You need to click and hold to scroll.

How can I make iOS simulator run faster?

Close unused applications to free system resources such as cpu & memory. make sure "slow animations" is not selected in the simulator debug menu. Short cut for this is ⌘T simulator -> Debug -> slow animations.

Can iOS simulator use camera?

Camera functionality is not available in any iOS version and in any Simulator. You will have to use a real device for camera testing purposes.


1 Answers

As written in the solution for iOS Simulator scrolls too fast on Apple M1 the issue seems to be linked to the Simulator app running on Apple M1 code. Switching it to use Intel (=Rosetta) did solve the issue for me:

To run in Rosetta, right click on Xcode and choose "Show Package Contents", from there you navigate to "Contents > Developer > Applications". There you'll find the Simulator app. If you right click on it and choose "Show info", you'll find an option to run it using Rosetta.

Interestingly the problem appears for me only when I try to run an old iOS 13.7 Simulators. It seems that Apple has fixed the issue for more recent iOS versions (like 14.5).

like image 111
pd95 Avatar answered Oct 11 '22 21:10

pd95