How to remove border of the navigationBar in swift?
The trouble is with these two lines: self.navigationController?.navigationBar.setBackgroundImage(UIImage(named: “”), forBarMetrics: UIBarMetrics.Default) self.navigationController?.navigationBar.shadowImage = UIImage(named: “”) Since you don’t have an image with no name, UIImage(named: “”) returns nil, which means the default behavior kicks in: When non-nil, a custom shadow image to show instead of the default shadow image. For a custom shadow to be … Read more