title: Rounding edge on UITextField
body: <p>I have 3 UITextFields with border style none. I want to add borders in code. The effect I want to achieve is to have rounded top corners on first UITextField and to have rounded bottom corners on third text field. Code I am using for rounding edges is here <a href="https://stackoverflow.com/questions/22410254/round-top-corners-of-a-uiview-and-add-border">Round top corners of a UIView and add border</a></p>
  
  <p>But i get this - no right edge and corners are not rounded:</p>
  
  <p><a href="https://i.stack.imgur.com/XwO46.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XwO46.jpg" alt="example"></a></p>
  
  <p>Note: I've set all constraints, that is not a problem. If i use UITextBorderStyleLine right edge is not rounded again.</p>
  
  <p>Please help.</p>