Debugging shortcuts for UIKeyCommand
['Joe Fabisevich']
Fabisevi.ch
He’s also got a blog post which shows you exactly how simple it is to create UIKeyCommand shortcuts for your app. After reading that, I decided that it would be neat to implement them across my app, so I could also start navigating around my UI with lightning speed while I’m debugging in the simulator. { return [ UIKeyCommand ( input : UIKeyInputLeftArrow , modifierFlags : [ ] , action : #selector ( popViewControllerWithKeyCommand ) ) , UIKeyCommand ( input : UIKeyInputDownArrow , modifierFlags : [ ] , action : #selector ( dismissViewControllerWithKeyCommand ) ) , ] } } private extension UIViewController { dynamic func popViewControllerWithKeyCommand ( ) { self .