skip to Main Content

iOS Swift – How to remove top bar back button's "Back" text?

I tried to identify what the "Back" text is from by the following: public override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.navigationController?.navigationBar.setTransparent(style: .default) print(self.navigationItem.backButtonTitle) print(self.navigationItem.backBarButtonItem?.title) print(self.navigationItem.title) print(self.navigationItem.titleView?.largeContentTitle) } However I got all nil outputs, which means these titles are not…

VIEW QUESTION
Back To Top
Search