Commit 503327da authored by Soomin Lee's avatar Soomin Lee

VLCTabBarCoodinator: Simplify setupVC

parent b92bed12
......@@ -44,19 +44,13 @@ class VLCTabBarCoordinator: NSObject {
}
private func setupViewControllers() {
// Video
let videoVC = VLCVideoViewController(services: services)
let controllers = [
VLCVideoViewController(services: services),
VLCAudioViewController(services: services),
VLCServerListViewController(nibName: nil, bundle: nil),
VLCSettingsController()
]
// Audio
let audioVC = VLCAudioViewController(services: services)
// Serverlist
let serverVC = VLCServerListViewController(nibName: nil, bundle: nil)
// Settings
let settingsVC = VLCSettingsController()
let controllers = [videoVC, audioVC, serverVC, settingsVC]
tabBarController.viewControllers = controllers.map { UINavigationController(rootViewController: $0) }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment