I have a UIView sideMenuView whose child is UIView goToAccountButton
let leftPanSwipe = UIPanGestureRecognizer(target: self, action: #selector(self.sideMenuTranslate))
sideMenuView.addGestureRecognizer(leftPanSwipe)
let goToAccountGestureTap = UILongPressGestureRecognizer(target: self, action: #selector(self.goToAccountGesture))
goToAccountGestureTap.minimumPressDuration = 0.0
goToAccountButton.addGestureRecognizer(goToAccountGestureTap)
When trying to left swipe on goToAccountButton which is a child of sideMenuView, only goToAccountGestureTap works and it doesn't left-swipe at all. 
I am unable to understand how to make both UILongPressGestureRecognizer and  UIPanGestureRecognizer work on goToAccountButton as expected and so stuck. Please help me find a solution to this. Thank you.