title: how to pass a UI ImageView from one view controller to another? swift 3
body: <p>I am trying to pass this UI Image View from one view controller to another on the same storyboard. I have already passed a UI TextField to a UI Label and UI Button. Now I need to do it with a UI Image View.</p>
  
  <p>Here are my two view controllers.</p>
  
  <pre><code>import UIKit
  
  class PhotoShareViewController: UIViewController {
  
      @IBOutlet weak var imageView: UIImageView!
      @IBOutlet weak var contentTextView: UITextView!
  
      @IBOutlet weak var thatTextField: UITextField!
      @IBOutlet weak var thisTextField: UITextField!
      var presenter: PhotoShareModuleInterface!
      var image: UIImage!
  
  
      @IBAction func thisUploadPhoto(_ sender: Any) {
  
          if thisTextField.text != "" &amp;&amp; thatTextField.text != ""
          {
              performSegue(withIdentifier: "segue", sender: nil)
          }
      }
  
  
      override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  
  
          var photoShareLabelViewController = segue.destination as! PhotoShareLabelViewController
  
  
          photoShareLabelViewController.thisString = thisTextField.text!
  
          photoShareLabelViewController.thatString = thatTextField.text!
  
      }
  
      override func viewWillAppear(_ animated: Bool) {
          super.viewWillAppear(animated)
  
          imageView.image = image
      }
  
      override var prefersStatusBarHidden: Bool {
          return true
      }
  
      @IBAction func didTapCancel(_ sender: AnyObject) {
          presenter.cancel()
          presenter.pop()
      }
  
   /*   @IBAction func didTapDone(_ sender: AnyObject) {
          guard let message = thatTextField.text, !message.isEmpty else {
              return
          }
          guard let messageOne = thisTextField.text, !messageOne.isEmpty else {
              return
          }
  
  
  
          presenter.finish(with: image, content:message)
          presenter.dismiss()
      }
  }
   */
  }
  
  extension PhotoShareViewController: PhotoShareViewInterface {
  
      var controller: UIViewController? {
          return self
      }
  }
  </code></pre>
  
  <p>if someone could tell me how to send the image from one view controller into another that would be awesome!</p>