title: iOS - How to Remove UIButton border color?
body: <p>Current button settings</p>
  
  <pre><code>button.backgroundColor = UIColor.brown
  button.layer.cornerRadius = 60/2
  button.layer.borderWidth = 5
  button.layer.borderColor = UIColor.white.cgColor
  </code></pre>
  
  <p>It looks like the code above
  The problem is, there is a very thin border on the outside as shown in the image below.</p>
  
  <p><a href="https://i.stack.imgur.com/LuAJi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LuAJi.jpg" alt="enter image description here"></a></p>
  
  <p>The border color is the same as the <code>backgroundColor</code> you set.
  Changing <code>backgroundColor</code> to red changes the bottom border to red.</p>
  
  <p>I have set <code>button.layer.shadowColor</code>.
  The button size is 60, and the width / height is set using anchor.</p>
  
  <p>Still searching. But only the borderColor settings.
  It is frustrating. Please ask for help. Why does this happen?</p>