title: Add a button on right view of UItextfield in such way that, text should not overlap the button
body: <p>I can add a button to a textfield on the right hand side of the UITextField using the right view however, the text overlaps on the button. Below is the code for right view button</p>
  
  <pre><code>        UIView.commitAnimations()
          var btnColor = UIButton(type: .Custom)
          btnColor.addTarget(self, action: #selector(self.openEmoji), forControlEvents: .TouchUpInside)
          btnColor.frame = CGRect(x: CGFloat(textField.frame.size.width - 25), y: CGFloat(5), width: CGFloat(25), height: CGFloat(25))
          btnColor.setBackgroundImage(UIImage(named: "send.png"), forState: .Normal)
          textField.addSubview(btnColor)
  </code></pre>
  
  <p>Please let me know how to give padding from right view for text.</p>