Created
May 12, 2021 08:51
-
-
Save marlonjames71/1905c133a0199e4cdffca0a3ff4ee0c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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