title: Passing Data from SwiftUI View to UIViewController
body: <p>I've been testing <strong>SwiftUI</strong> to see how far I can go with it.  Now, I want to find out whether or not I can pass a string from SwiftUI <code>View</code> directly to <code>UIViewController</code>.  And I want to display this string with <code>UILabel</code>.  <code>UILabel</code> is all I have on my storyoboard.</p>
  
  <p>The following is my view controller (<code>UIViewController</code>).</p>
  
  <pre><code>import UIKit
  import SwiftUI
  
  class HomeViewController: UIViewController {
      var message = String()
  
      @IBOutlet weak var messageLabel: UILabel!
  
      override func viewDidLoad() {
          super.viewDidLoad()
      }
  
      override func viewWillAppear(_ animated: Bool) {
          super.viewWillAppear(animated)
          messageLabel.text = message
      }
  }
  
  struct HomeViewControllerRepresentation: UIViewControllerRepresentable {
      func makeUIViewController(context: UIViewControllerRepresentableContext&lt;HomeViewControllerRepresentation&gt;) -&gt; HomeViewController {
          UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "homeViewController") as! HomeViewController
      }
  
      func updateUIViewController(_ uiViewController: HomeViewController, context: UIViewControllerRepresentableContext&lt;HomeViewControllerRepresentation&gt;) {
  
      }
  }
  </code></pre>
  
  <p>My SwiftUI <code>View</code> is the following.</p>
  
  <pre><code>import SwiftUI
  
  struct ContentView: View {
      var body: some View {
          NavigationView {
              VStack {
                  NavigationLink(destination: HomeViewControllerRepresentation(message: "GGG")) { // Error
                      Text("Tap me")
                  }
              }
              .navigationBarTitle("")
              .navigationBarHidden(true)
          }
      }
  }
  </code></pre>
  
  <p>I hoped that I could just pass a string with HomeViewControllerRepresentation.  But it won't work.  Is there a simple way of passing data from SwiftUI <code>View</code> to <code>UIViewController</code>?  Thanks. </p>