title: UIButton image on top of the text
body: <p>I have two dynamic size button and i need make image and title text for them. Image must be on top and text under image and both must is in the center of the button. I try do it with <code>imageEdgeInsatse</code> but can't understand what I am do wrong. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>leftButton.imageEdgeInsets = UIEdgeInsets(top: 5, left:0, bottom: 60, right: 0)
  leftButton.titleEdgeInsets = UIEdgeInsets(top: 60, left: 0, bottom: 5, right: 0)
  
  rightButton.imageEdgeInsets = UIEdgeInsets(top: 5, left: 0, bottom: 60, right: 0)
  rightButton.titleEdgeInsets = UIEdgeInsets(top: 60, left: 0, bottom: 5, right: 0)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/HloDI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HloDI.png" alt="enter image description here"></a></p>