title: Button border with corner radius in Swift UI
body: <p>I'm trying to set a rounded border to a button but the border of the button is not correct.</p>
  
  <p>Code:</p>
  
  <pre><code>Button(action: {
          print("sign up bin tapped")          
  }) {
      Text("SIGN UP")
       .frame(minWidth: 0, maxWidth: .infinity)
        .font(.system(size: 18))
        .padding()
        .foregroundColor(.white)
   }
    .border(Color.white, width: 2)
    .cornerRadius(25)
  </code></pre>
  
  <p>Output:</p>
  
  <p><a href="https://i.stack.imgur.com/Qrmj7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Qrmj7.png" alt="enter image description here"></a></p>
  
  <p>As you can see the border at corner are cut-off.</p>
  
  <p>Any suggestion what am I doing wrong?</p>