title: How to dismiss swiftUI from Viewcontroller?
body: <p>In my an viewController I have this function</p>
  
  <pre><code>...{
  let vc = UIHostingController(rootView: SwiftUIView())
          present(vc, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>Which present the following SwiftUIView.</p>
  
  <p>Q How to dismiss the SwiftUIView when CustomButton pressed?</p>
  
  <pre><code>struct SwiftUIView : View {
       var body: some View {
         CustomButton()
       }   
  }
  
  struct CustomButton: View {
  
      var body: some View {
          Button(action: {
              self.buttonAction()
          }) {
              Text(buttonTitle)
          }
      }
  
      func buttonAction() {
          //dismiss the SwiftUIView when this button pressed
      }       
  }
  </code></pre>