Skip to content

Commit

Permalink
Add labels woooo (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
objorkman authored Feb 14, 2021
1 parent 1ee186c commit 0f7f10d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions berkeley-mobile/Tab Bar/TabBarController.swift
Original file line number Diff line number Diff line change
@@ -24,10 +24,14 @@ class TabBarController: UITabBarController, UITabBarControllerDelegate {
tabBar.isTranslucent = false
tabBar.tintColor = UIColor.black

mapView.tabBarItem = UITabBarItem(title: "", image: UIImage(named: "Home"), tag: 0)
resourcesView.tabBarItem = UITabBarItem(title: "", image: UIImage(named: "Resources"), tag: 1)
calendarView.tabBarItem = UITabBarItem(title: "", image: UIImage(named: "Calendar"), tag: 2)
profileView.tabBarItem = UITabBarItem(title: "", image: UIImage(named: "Profile"), tag: 3)
let appearance = UITabBarItem.appearance()
let attributes = [NSAttributedString.Key.font: Font.regular(11)]
appearance.setTitleTextAttributes(attributes, for: .normal)

mapView.tabBarItem = UITabBarItem(title: "Home", image: UIImage(named: "Home"), tag: 0)
resourcesView.tabBarItem = UITabBarItem(title: "Resources", image: UIImage(named: "Resources"), tag: 1)
calendarView.tabBarItem = UITabBarItem(title: "Events", image: UIImage(named: "Calendar"), tag: 2)
profileView.tabBarItem = UITabBarItem(title: "Profile", image: UIImage(named: "Profile"), tag: 3)

self.viewControllers = [mapView, resourcesView, calendarView, profileView]

0 comments on commit 0f7f10d

Please sign in to comment.