Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marlonjames71/1905c133a0199e4cdffca0a3ff4ee0c8 to your computer and use it in GitHub Desktop.
Save marlonjames71/1905c133a0199e4cdffca0a3ff4ee0c8 to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
dataSource = self
delegate = self
if let firstMediaVC = mediaViewControllerAtIndex(currentIndex) {
let viewControllers = [firstMediaVC]
setViewControllers(viewControllers, direction: .forward, animated: false, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment