title: How to extend the width of a button using SwiftUI
body: <p>I cannot figure out how to change the width of buttons in SwiftUI.</p>
  
  <p>I have already attempted:
  using .frame(minWidth: 0, maxWidth: .infinity),
  using Spacer() around the button and navigationlink,
  using frame on the Text field and padding on the button, look through the documentation, as well as a few other things I found while just searching online. However nothing changes the buttons width whatsoever. </p>
  
  <pre><code>NavigationLink(destination: Home(), isActive: self.$isActive) { Text("") }
  Button(action: { self.isActive = true }) { LoginBtn() }
  
  struct LoginBtn: View {
      var body: some View {
          Text("Login")
              .fontWeight(.bold)
              .padding()
              .foregroundColor(Color.white)
              .background(Color.orange)
              .cornerRadius(5.0)
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/VC4iH.png" rel="nofollow noreferrer">Photo of current button</a></p>
  
  <p>I would like to have the button to extend to be similar to the width of the TextFields used. Again, I know there have been answers posted but for some reason I cannot get mine to work. Thanks!</p>