remove back button from its child in swift code example Example: remove back button swift self.navigationItem.setHidesBackButton(true, animated: true);