title: Set Toggle color in SwiftUI
body: <p>I've implemented a toggle after following Apple's <a href="https://developer.apple.com/tutorials/swiftui/handling-user-input" rel="noreferrer">tutorial on user input</a>. Currently, it looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/jvmsU.png" height="150" /></p>
  
  <p>This is the code that produces this UI:</p>
  
  <pre><code>NavigationView {
      List {
          Toggle(isOn: $showFavoritesOnly) {
              Text("Show Favorites only")
          }
      }
  }
  </code></pre>
  
  <p>Now, I'd like the <code>Toggle</code>'s <em>on</em>-color to be blue instead of green.<br>
  I tried:</p>
  
  <pre><code>Toggle(isOn: $showFavoritesOnly) {
      Text("Show Favorites only")
  }
  .accentColor(.blue)
  </code></pre>
  
  <pre><code>.foregroundColor(.blue)
  </code></pre>
  
  <pre><code>.background(Color.blue)
  </code></pre>
  
  <p>None of these worked and I wasn't able to find any other modifiers, such as <code>tintColor</code>.</p>
  
  <p>How do I change the color of a <code>Toggle</code>?</p>