title: How to remove specific border on an UIButton and an UIView?
body: <p>I have an UIButton and an UIView where i want to remove bottom border for the button and top border for the view. The image below show an UIButton. When I press this UIButton the UIView will be added as subview (like a dropdown menu), But I want the button and the view merge with each other so it will look like on "box". </p>
  
  <p>I know how to set border width and color:</p>
  
  <pre><code>self.layer.borderWidth = 1
  self.layer.borderColor = UIColor(CGColor: "#616366".CGColor).CGColor
  </code></pre>
  
  <p>But I don't know if it is possible to remove on border line. Hope you guys can help - Thank you</p>
  
  <p><a href="https://i.stack.imgur.com/jQTGV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jQTGV.png" alt="enter image description here"></a></p>