title: PrepareForSegue between UIView and ViewController using Swift
body: <p>I have a UIView in a view controller which displays an image. This UIView is associated to classX, while the view controller it is in is associated to classY.
  My question is, how can I use prepareForSegue in the case? I want to send data from my viewController class to the UIView class to display an image depending on the value it receives respectively.</p>
  
  <p>I have it this way because in classX I need to inherit the UIView class to display the pictures, while in classY I need to inherit the UIViewController because i have functions that need it there; from my knowledge, I cannot inherit both together.</p>
  
  <p>Any thoughts on how to do this?</p>
  
  <p>Thanks</p>