title: How can i show UIViewControllerRepresentable screen on button tap from UIViewRepresentable
body: <p>I am working on a SwiftUI project, in my app i have to show a map, i am able to show map using <code>UIViewRepresentable</code>, now that map view will have a button and on tapping on that button mapview will needs to show controller (full screen direction) view and i know i can do this using <code>UIViewControllerRepresentable</code>.</p>
  <p>I need help in which how can i show the <code>UIViewControllerRepresentable</code> from button click of <code>UIViewRepresentable</code></p>
  <p>Till now what i have done is, adding my code :</p>
  <p>On button click i am calling <code>showDetailMap </code> function which calls the <code>MapDetailViewController </code>, but some how <code>MapDetailViewController</code> is not opening as model.</p>
  <pre><code>private func showDetailMap() {
      MapDetailViewController()
  }
  
  struct MapDetailViewController: UIViewControllerRepresentable {
  
  func makeUIViewController(context: Context) -&gt; MapDetailViewController {
      let viewController: MapDetailViewController = MapDetailViewController()
      return viewController
  }
  
  func updateUIViewController(_ uiViewController: MapDetailViewController, context: Context) {}
  
  
  }
  </code></pre>
  <p>Please help me with this.</p>