I want to hide the back button when transitioning from one view to another. I read the questions regarding this problem and every answer was \"use hidesBackButton\"
hidesBackButton
To hide the back button with the latest Swift:
self.navigationItem.setHidesBackButton(true, animated: false)