PageViewController dynamic initialisation in Swift? -


How can we change this for dynamic page view controller initialization? Where page controller is a property

  self.pageController = [[UIPageViewController alloc] initWithTransitionStyle: UIPageViewControllerTransitionStyleScroll Navigation Orientation: UIPageViewControllerNavigationOrientationHorizontal Option: Zero];  

Just like this?

  self.pageController = UIPageViewController (Transition Style: .Scroll, Navigation Orientation: Horizontal, Options: Zero)  

Comments