How to resize an image in navigation bar title : <p>I am trying to resize my image so it fits to navigation title. I give it height and weight but it still looks huge <a href="https://i.stack.imgur.com/dyPqb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dyPqb.png" alt="like this"></a></p>

<p>and here is my code:</p>

<pre><code> override func viewDidLoad() {
       super.viewDidLoad()


    let image = UIImage(named: "rollyiha copyi")
    let imageview = UIImageView(image: image)
    imageview.frame.size.width = 58

    imageview.frame.size.height = 33
    imageview.frame.origin = CGPoint(x: 2, y: 8)

    imageview.sizeToFit()
    navcik.titleView = imageview
}
</code></pre>

<p>And when I edit the picture to smaller size manually, it loses resolution.
How to make it size 58 : 33 with code ?</p>
