I just updated XCode to version 9, and when running my project with no major changes, the title logo has increased its size to fill the header. Before upgrading, its size covered around 50% of the navigation bar as I intended to.
The code where I position the logo is the following:
//Logo on NavBar
let logo = UIImage(named: "logo.png")
let imageView = UIImageView(image:logo)
imageView.height = (self.navigationController?.navigationBar.height)! - 25
imageView.contentMode = .scaleAspectFit
self.navigationItem.titleView = imageView
Here's how the logo used to (and it's supposed to) look:
And after the XCode update, this is how it looks:
Any ideas of why this might be happening?