title: How to use SwiftUI Slider in UIKit
body: <p>I've created a Slider in SwiftUI that I would like to use in an XIB file using UIKit, I'm not sure if using a UIHostingViewController would work in this scenario.</p>
  <p>Here is the SwiftUI code for the Slider:</p>
  <pre><code>protocol SnapperSliderDelegate {
      func valueChanged(value: Int)
  }
  
  struct SnapperSlider: View {
      @State private var speed = 50.0
      @State private var isEditing = false
      
      var delegate:SnapperSliderDelegate?
      
      var body: some View {
          VStack {
              Slider(value: $speed, in: 15...70, step: 5.0) { (editing) in
                  isEditing = editing
                  if editing {
                      delegate?.valueChanged(value: Int(speed))
                  }
              }
          }
      }
  }
  </code></pre>
  <p>How can I use this in UIKit?</p>