Is there a rapid undo option on iPhone?

On iPad I can tap the “.?123” key and get an undo button and a redo button that I can mash if I need to undo a lot of things quickly.

On iPhone it looks like there’s only the undo option in the edit menu, which is very ill-suited for situations that might call for rapid undo, because the whole menu disappears every time you tap the undo option, making it so that you can’t just mash it.

Is there another way to undo things on iPhone that can be used for rapid undo?

you can shake the phone lol, not rapid but another option