title: Setting Image and Text to Button with AutoLayout
body: <p>I'm trying to create a button with a drop down arrow to the right of the text programatically like so:</p>
  
  <p><a href="https://i.stack.imgur.com/BP4vd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BP4vd.png" alt="Dropdown button"></a></p>
  
  <p>The solutions I've seen have used title and image insets, but is there a way to set these with autoLayout programatically? Depending on the option selected, the text in the button could change and the text lengths will be different, so I'm not sure if title and edge insets are the way to go.</p>