I am trying to change the height of the navigation bar with this code provided in few links over stackoverflow, but it is not working as required.
self.navigationController?.navigationBar.frame = CGRect(x: self.view.frame.origin.x, y: self.view.frame.origin.y, width: self.view.frame.size.width, height: 200)
self.navigationController?.navigationBar.layoutIfNeeded()
Is there anything additional that I need to add to make it work ?
I did checked the reference link too but it is not working, also it is the same as I written with added fix.