iOS 'shake' within an app?

does anyone have the code for a shake of the iPhone, like the shake to undo? please any help is much appreciated … thank you

I haven’t seen the code but you could use a thread to record the values from the iOSMotion class and then shake your iPhone to see what you get and then could come up with the range you’d need to look for.

1 Like

I have something in iOSKit. Example view:

I successfully used the ShakingView from iOSKit in a dice app. It works great!