title: IOS 13: spacing Issue with UITextField rightView
body: <p>I am facing a spacing issue with a right view of UITextField in IOS 13, See my following code and screenshot of ios 13 and ios 12.4</p>
  
  <p>In IOS 12.4 simulator display proper space in the right view (UIButton)of UITextField</p>
  
  <p>In IOS 13.0 simulator has a spacing issue in the right view (UIButton)of UITextField</p>
  
  <pre><code>let dropdownButton = UIButton(frame: CGRect(x: 0, y: 0, width: 50, height: txtField.frame.height))
  dropdownButton.backgroundColor = UIColor.clear
  dropdownButton.setImage(UIImage(named: "ic_DownArrow"), for: UIControl.State())            
  txtField.rightView = dropdownButton           
  txtField.rightViewMode = .always
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/RL2PN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RL2PN.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/UUAQO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UUAQO.png" alt="enter image description here"></a></p>