[Solved] How to implement below code in swift


Do like this,

let startingViewController: PageContentViewController? = viewController(at: 0)
let viewControllers: [UIViewController] = [startingViewController]
pageViewController.setViewControllers(viewControllers, direction: .forward, animated: false) { _ in }

3

solved How to implement below code in swift