I\'m developing a app with a gesture system, basically if I turn the iPhone to left my app will do a function, if I turn the iPhone to Right, other function, with others ges
This has been updated for IOS 12 - see Apple Docs You no longer need to add becomeFirstResponder() method.
You just need to add motionEnded function to your code.
override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) { // code here }