I want to set some shadow to the bottom of my UINavigationBar for the whole application. Here is what I\'ve tried but it doesn\'t work:
func application(appl
Easy, works on Swift 3:
navigationController?.navigationBar.layer.shadowColor = UIColor.black.cgColor navigationController?.navigationBar.layer.shadowOpacity = 1 navigationController?.navigationBar.layer.shadowOffset = CGSize.zero navigationController?.navigationBar.layer.shadowRadius = 10