title: How to change SwiftUI Picker view size with no additional space?
body: <p>I'm new to SwiftUI and trying to implement Piker view from SwftUI.</p>
  <p>I have simple Picker with a few elements in it to display. I set a frame with to 50 only, added border to it and applied view modifier .clipped(). Heres code:</p>
  <pre><code>import SwiftUI
  
  struct ContentView: View {
  var body: some View {
          VStack {
              Picker(selection: .constant(1), label: Text(&quot;&quot;)) {
                  Text(&quot;1&quot;).tag(1)
                  Text(&quot;2&quot;).tag(2)
                  Text(&quot;3&quot;).tag(3)
              }
              //.clipped()
              .labelsHidden()
              .frame(width: 50)
              .clipped()
          }
          .border(Color.red)
     }
  }
  </code></pre>
  <p>Everything looks ok. But, the problem start to occur when run the app and at the moment of running just open <strong>Debug View Hierarchy</strong> and you'll see like the actual size if <strong>Picker width is much bigger</strong> and I don't know why is that happening. Please, if you know how to fix it, I'll appearance it a lot, thank you </p>
  <p><a href="https://i.stack.imgur.com/0ALtH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ALtH.png" alt="enter image description here" /></a></p>