title: How to make SwiftUI's Picker borderless/transparent on macOS?
body: <p>I want to set a picker button borderless and transparent in SwiftUI on macOS.</p>
  
  <p>I tried using <code>.background()</code>, <code>.border()</code> and <code>.opacity()</code> modifiers on the Picker view. However, I can't change the background to a transparent color using <code>.background()</code>, I can't remove the border using <code>.border()</code>, and I can't find a way to change only the background to transparent using <code>.opacity()</code>.</p>
  
  <p>Here is my code for the picker:</p>
  
  <pre><code>Picker(selection: .constant(1), label: EmptyView()) {
      Text("1").tag(1)
      Text("2").tag(2)
  }
  .scaledToFit()
  </code></pre>
  
  <p><code>.constant(1)</code> is a placeholder</p>
  
  <p>Currently the picker looks like this:<br>
  <a href="https://i.stack.imgur.com/zVxiX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zVxiX.png" alt="Current Picker Look"></a></p>
  
  <p>I want it to look like the pickers in the Contacts app on Mac:<br>
  <a href="https://i.stack.imgur.com/5LQ7n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5LQ7n.png" alt="Wanted Picker Look"></a></p>
  
  <hr>
  
  <p><strong>UPDATE</strong> (2019-11-30)</p>
  
  <p>After trying all likely modifiers and functions that are applicable to a <code>Picker</code>, I've determined that there is no solution so far. SwiftUI is incomplete as a replacement for storyboards or XIB as of now.</p>