title: IOS add shadow to UIButton
body: <p>Im trying to add a shadow to a button but the shadow gets added to the text of the button instead of the whole button:</p>
  
  <p><a href="https://i.stack.imgur.com/Msg07.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Msg07.png" alt="enter image description here"></a></p>
  
  <p>Do I need to use code to achieve this? Or is it a sizing issue? I could add shadow size on the storyboard but I don't see where to set if it should go around the button</p>