title: Do I have to declare the array of UIViewControllers as lazy var when using UIPageViewController?
body: <p>I would like to call a function of one of the subviewcontrollers inside my MainPageViewController (which is an UIPageViewController), but I cannot do that due to viewControllerList property function.</p>
  
  <pre><code>lazy var viewControllerList: [UIViewController] = {
      let vc1 = BasicBreathingViewController()
      let vc2 = RotatingBreathingViewController()
      return [vc1, vc2]
  }()
  </code></pre>
  
  <p>I would like to access vc1 and vc2 outside the function to be able to call for example the vc1.animate() function.</p>
  
  <p>I have already tried to make vc1 and vc2 global variables, but then the MainPageViewController crashes.</p>