Archived
Added done button to keyboard in Customization View Controller, added code for Firebase notifications (non-functional without APNs key from a developer account)
This commit is contained in:
@@ -46,6 +46,14 @@ class InfoViewController : UIViewController {
|
||||
self.df.doAsync(do: "info") { infoArray in
|
||||
self.content.text = infoArray[0] as? String
|
||||
self.refreshControl.endRefreshing()
|
||||
if let tabItems = self.tabBarController?.tabBar.items {
|
||||
let tabItem = tabItems[1]
|
||||
if self.prefs.integer(forKey: "personalPlanCount") != 0 {
|
||||
tabItem.badgeValue = "\(self.prefs.integer(forKey: "personalPlanCount"))"
|
||||
} else {
|
||||
tabItem.badgeValue = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user