title: Calling functions from UIViewController in SwiftUI
body: <p>I'm looking to call a function inside a UIKit UIViewController from a button managed by Swift UI</p>
  <p>In my Swift UI View I have:</p>
  <pre><code>struct CameraView: View {
          var body: some View {
              cameraViewController = CameraViewController()
  ...
  </code></pre>
  <p>which I see creates two instances, one directly created just like calling any class, and the other created by the required <code>makeUIViewController</code> method needed for Swift UI to manage UIKit UIViewControllers.</p>
  <p>However when I attached a function to a button in my Swift UI say, <code>cameraViewController.takePhoto()</code> The instance that is referenced is not the one displayed.</p>
  <p>How can I obtain the specific instance that is displayed?</p>