title: How to remove or hide the label of a Toggle in SwiftUI
body: <p>I'm looking for a way to remove the label of a <code>Toggle</code> in SwiftUI...</p>
  
  <p>I have tried with <code>ToggleStyle</code> but it does not seems to be the right way:</p>
  
  <pre><code>Toggle(isOn: $isBlinky) {
      Text("DO NOT DISPLAY").color(.red)
  }
  .toggleStyle(.switch)
  </code></pre>
  
  <p>As the label seems to be included in the type itself (<code>struct Toggle&lt;Label&gt;</code>) there may be no way to only have the switch alone... </p>
  
  <p>By the way if I use <code>Text("")</code> and then <code>scaledToFit()</code> the switch is still a bit on the right and not really centered...</p>
  
  <p>Anyway if someone has an idea!</p>
  
  <p><strong>PS:</strong> While waiting for a solution, I wrapped a good old <code>UISwitch</code>, but that's not the idea...</p>
  
  <pre><code>struct Switch : UIViewRepresentable {
      @Binding var isOn : Bool
  
      func makeUIView(context: Context) -&gt; UISwitch {
          let uiView = UISwitch()
          uiView.addTarget(
              context.coordinator,
              action: #selector(Coordinator.didChange(sender:)),
              for: .valueChanged)
  
          return uiView
      }
  
      func updateUIView(_ uiView: UISwitch, context: Context) {
          uiView.isOn = isOn
      }
  
      // MARK:- Coordinator
  
      func makeCoordinator() -&gt; Switch.Coordinator {
          return Coordinator(self)
      }
  
      class Coordinator: NSObject {
          var control: Switch
  
          init(_ control: Switch) {
              self.control = control
          }
  
          @objc func didChange(sender: UISwitch) {
              control.isOn = sender.isOn
          }
      }
  }
  </code></pre>