While composing text, messages, or editing photos, shake your iPhone to revert to the previous action, and shake again to redo.
To enable the Shake to Undo feature on iPhone 7 Plus, follow these steps:
First, go to 'Settings'.

Next, choose 'General Settings'.

Access the Accessibility menu.

Here, locate 'Shake to Undo'.


Wishing you all the best.
