title: How to call another method from another class in swift?
body: <pre><code>mainController = (ViewController *)self.presentingViewController;   
  mainController.pressureUnit = _pressureSettings.selectedSegmentIndex;
  </code></pre>
  
  <p>This is how I will do it in Objective C. How do I do this in swift?</p>