Skip to content

Instantly share code, notes, and snippets.

@atulkhatri
Created July 12, 2021 16:54
Show Gist options
  • Save atulkhatri/537f12044a825405253e8f17829866c1 to your computer and use it in GitHub Desktop.
Save atulkhatri/537f12044a825405253e8f17829866c1 to your computer and use it in GitHub Desktop.
tvOS Bootcamp TabBarViewController
private func setupView() {
let moviesVC = HomeViewController(nibName: "HomeViewController", bundle: nil)
moviesVC.title = "Movies"
let seriesVC = HomeViewController(nibName: "HomeViewController", bundle: nil)
seriesVC.title = "Series"
let settingsVC = SettingsViewController(nibName: "SettingsViewController", bundle: nil)
settingsVC.title = "Settings"
viewControllers = [moviesVC, seriesVC, settingsVC]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment