title: Using SwiftUI view in WatchKit and Storyboard
body: <p>I'm building a watch app with <code>WatchKit</code> and storyboard.
  I have a <code>SwiftUI</code> view that I want to use as a subview beside the other Storyboard items in a <code>WKInterfaceController</code>.</p>
  <p>The <code>SwiftUI</code> view:</p>
  <pre><code>struct SliderView: View {
      @State private var speed = 50.0
  
      var body: some View {
          CompactSlider(value: $speed, in: 0...100, step: 5) {
              Text(&quot;Speed&quot;)
              Spacer()
              Text(&quot;\(Int(speed))&quot;)
          }
      }
  }
  </code></pre>
  <p>This <code>SwiftUI</code> view lays just fine on a separate controller using <code>WKHostingController</code>, but this is not what i want.</p>
  <pre><code>class HostingController: WKHostingController&lt;SliderView&gt; {
      override var body: SliderView {
          return SliderView()
      }
  }
  </code></pre>
  <p>How can I use this <code>SwiftUI</code> view on Storyboard or <code>WKInterfaceController</code>?</p>