title: Passing y contentOffset from scrollViewDidScroll(scrollView to another view controller using swift
body: <p>I am new to programming and swift.</p>
  
  <p>I have a mainViewController with a containerView which contains a scrollView. I would like to be able to pass the value of the y contentOffset from this scrollView ( from the scrollViewDidScroll(scrollView function) to update the frame.origin.y of a image in the mainViewController so that it moves inrelation to the containerView's scrollView.</p>
  
  <p>How can i share data between the two View controllers (or multiple view controllers) using swift?</p>
  
  <p>Any help would be greatly appreciated!!!</p>