Añadir al BaseViewController o BaseView
en viewDidLoad() o commonInit()
let swipeRight = UISwipeGestureRecognizer(target: self, action: #selector(handleRightGesture(_:)))
swipeRight.direction = .right
self.view.addGestureRecognizer(swipeRight)
implementar en el mismo base
@objc func handleRightGesture(_ sender: UITapGestureRecognizer){
}
implementar en cada viewController o view
override func handleRightGesture(_ sender: UITapGestureRecognizer){
self.navigationController?.popViewController(animated: true);
}