Made small tweaks to ColourViewCell and the badge for the tab controller

This commit is contained in:
Deniz Duezgoeren
2019-08-22 19:30:40 +02:00
parent 573e5a5ab7
commit 6bb14d659d
4 changed files with 24 additions and 2 deletions
+9
View File
@@ -67,6 +67,15 @@ class PlanViewController : UIViewController, UICollectionViewDataSource, UIColle
override func viewDidLoad() {
super.viewDidLoad()
if let tabItems = self.tabBarController?.tabBar.items {
let tabItem = tabItems[1]
if self.planPrefs.integer(forKey: "personalPlanCount") != 0 {
tabItem.badgeValue = "\(self.planPrefs.integer(forKey: "personalPlanCount"))"
} else {
tabItem.badgeValue = nil
}
}
}
func getViewType() -> String {