Swift Custom NavBar Back Button Image and Text : <p>I need to customise the look of a back button in a Swift project.</p>

<p>Here's what I have:
<a href="https://i.stack.imgur.com/WBW7p.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WBW7p.png" alt="Default Back Button"></a></p>

<p>Here's what I want:
<a href="https://i.stack.imgur.com/KaGCs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KaGCs.png" alt="Custom Back Button"></a></p>

<p>I've tried creating my own UIBarButtonItem but I can't figure out how to get the image to be beside the text, rather than as a background or a replacement for the text.</p>

<pre><code>let backButton = UIBarButtonItem(title: "Custom", style: .Plain, target: self, action: nil    )
//backButton.image = UIImage(named: "imageName") //Replaces title
backButton.setBackgroundImage(UIImage(named: "imageName"), forState: .Normal, barMetrics: .Default) // Stretches image
navigationItem.setLeftBarButtonItem(backButton, animated: false)
</code></pre>
