On the picture on the right is what I need and on the left is what I get:
I'm trying to make a transparent navigation bar, and in the book which I'm reading it's written that all you need to do is to insert this code in viewDidLoad() method of the preferable View Controller:
navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
navigationController?.navigationBar.shadowImage = UIImage()
navigationController?.navigationBar.tintColor = .white
tableView.contentInsetAdjustmentBehavior = .never
But all I get is a white navigation bar. Also if's written that the difference of bars on the picture is in this code:
tableView.contentInsetAdjustmentBehavior = .never
But it doesn't work for me
I downloaded the final project of this book's chapter and everything works fine there, though I've tried to copy-paste the code and still got nothing changed
And the thing is - I've already tried to insert this code:
navigationController?.navigationBar.isTranslucent = true
But it doesn't work
If it matters, the book is "Beginning iOS 11 programming" by AppCoda