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
this worked for me
navigationController?.navigationBar.topItem?.hidesBackButton = true