title: How to make rounded corners and sides in UIview programmatically?
body: <p>How to make rounded corners and sides in UIview programmatically like has youtube:
  <a href="https://i.stack.imgur.com/q8FWh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q8FWh.png" alt="enter image description here"></a></p>
  
  <p>I know how to make rounded corner but have no idea how to make rounded sides. I need to do it programmatically (not just setting image mask previously designed)</p>