Gestures have long been a large part of Apple’s interfaces. They expedite actions and make for a more enjoyable user experience. Now in iOS 13, you can swipe to the left with three fingers or use a three finger tap to Undo typing. This will likely be faster and more intuitive than shaking your device to prompt the Undo option.