Tusker/Tusker/Screens/Main/MainTabBarViewController.swift

43 lines
1.3 KiB
Swift
Raw Normal View History

2018-08-21 21:17:25 +00:00
//
// MainTabBarViewController.swift
// Tusker
//
// Created by Shadowfactson 8/21/18.
// Copyright © 2018 Shadowfacts. All rights reserved.
//
import UIKit
class MainTabBarViewController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
viewControllers = [
navigationController(for: TimelineTableViewController.create(for: .home)),
navigationController(for: TimelineTableViewController.create(for: .public(local: false))),
navigationController(for: TimelineTableViewController.create(for: .public(local: true))),
2018-09-03 20:54:03 +00:00
NotificationsTableViewController.create(),
2018-08-28 23:16:17 +00:00
PreferencesTableViewController.create()
2018-08-21 21:17:25 +00:00
]
}
func navigationController(for vc: UIViewController) -> UINavigationController {
return UINavigationController(rootViewController: vc)
}
2018-08-21 21:17:25 +00:00
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
2018-08-31 02:30:19 +00:00
@IBAction func unwindToTabBarController(segue: UIStoryboardSegue) {
}
2018-08-21 21:17:25 +00:00
}