public override func viewDidLoad() {
super.viewDidLoad()
navigationItem.backBarButtonItem = .init(image: "back_icon".image, style: .plain, target: nil, action: nil)
}
For this above code, I got my back_icon image with the default back image
Any idea to remove the default back button at the same time preserving swipe edge to pop viewController.
2
Answers
You can remove default back Button by following way:
And manually add navigation items in left side using
navigationitem.leftBarButtonItem.
Hope it helps!
You should be able to change the back button image globally by using
And if you only want to change it in some places:
Removing an arrow at all would be as simple as