Skip to content

Instantly share code, notes, and snippets.

@Kharauzov
Last active March 24, 2020 07:29
Show Gist options
  • Select an option

  • Save Kharauzov/36755dbce5711a9a69e572ff066f66fb to your computer and use it in GitHub Desktop.

Select an option

Save Kharauzov/36755dbce5711a9a69e572ff066f66fb to your computer and use it in GitHub Desktop.
private func setChildViewControllers() {
let topViewController = ProfileShortInfoViewController()
view.backgroundColor = topViewController.view.backgroundColor
let card1ViewController = ProfileActivityViewController()
let card2ViewController = RecommendationsViewController()
setTopChildViewController(topViewController)
setCard1ChildViewController(card1ViewController)
setCard2ChildViewController(card2ViewController)
self.topViewController = topViewController
self.activityViewController = card1ViewController
self.recommendationsViewController = card2ViewController
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment