Skip to content

Commit

Permalink
Update profile tab interactions.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlon committed Jul 15, 2020
1 parent 9ba5c7b commit 51e3094
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion myuw-ios/ApplicationController.swift
Expand Up @@ -176,6 +176,9 @@ class ApplicationController: UITabBarController, UITabBarControllerDelegate, UIN
case tabAccounts:
os_log("Clicked tabAccounts, index: %d", log: .app, type: .info, selectedIndex)
UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex")
case tabProfile:
os_log("Clicked tabProfile, index: %d", log: .app, type: .info, selectedIndex)
UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex")
case tabNotices:
os_log("Clicked tabNotices, index: %d", log: .app, type: .info, selectedIndex)
UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex")
Expand All @@ -197,7 +200,7 @@ class ApplicationController: UITabBarController, UITabBarControllerDelegate, UIN

// remove the more "edit" button
self.moreNavigationController.tabBarController?.customizableViewControllers = []
self.moreNavigationController.navigationBar.topItem?.rightBarButtonItem = nil
//self.moreNavigationController.navigationBar.topItem?.rightBarButtonItem = nil
self.moreNavigationController.tabBarController?.customizableViewControllers?.removeAll()

let selectedVC = self.selectedViewController
Expand All @@ -208,6 +211,9 @@ class ApplicationController: UITabBarController, UITabBarControllerDelegate, UIN
case tabNotices:
os_log("Clicked tabNotices, index: %d", log: .app, type: .info, selectedIndex)
UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex")
case tabProfile:
os_log("Clicked tabProfile, index: %d", log: .app, type: .info, selectedIndex)
UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex")
case tabCalendar:
os_log("Clicked tabCalendar, index: %d", log: .app, type: .info, selectedIndex)
UserDefaults.standard.set(selectedIndex, forKey: "lastTabIndex")
Expand Down

0 comments on commit 51e3094

Please sign in to comment.