title: Passing and calling variables and functions between views in swift
body: <p>I've been wanting to dig into iOS and Mac programming for quite some time and when I heard about swift, I thought this would be a splendid time to do so.</p>
  
  <p>Currently I'm stuck on accessing variables defined in other views.
  I'm using a public struct with some static variables that I can access from anywhere, but (apart from my gut instinct telling me I'm doing it wrong) I came to a point where this is simply not a viable solution.
  I have a ViewController with an embedded ListView. I have to somehow edit the TopViews Labels when a Cell is deleted in the list.</p>
  
  <p>How can I call the textLabel.text or a reload function from the embedded view?</p>
  
  <p>To create the List I followed <a href="http://ios-blog.co.uk/tutorials/developing-ios8-apps-using-swift-create-a-to-do-application/" rel="nofollow">this tutorial</a> and built upon it.</p>