Shake on iPhone?

I’ve been trying to use the iOSKit’s Shake, but it doesn’t fire when another control is active (like a Textarea).

Is there some other way to see if a shake has been done?

The iOS shake function depends on what actually has focus, so it makes sense that it stops when a textarea gets focus.

What is it that you’re trying to use the shake feature for?

I have a custom undo I’m trying to activate with shake. I can’t use the built-in undo of the text area since code changes the text.

I already have double-tap with three fingers, and three finger swipes to undo, I just need a way to detect shakes for the last way to undo.