Use protocol to get title from child VCs.

This commit is contained in:
David Langley
2022-02-23 11:41:05 +00:00
parent 3fa694552e
commit 9c53cfd4e3
8 changed files with 75 additions and 17 deletions
@@ -21,7 +21,7 @@
#import "GeneratedInterface-Swift.h"
@interface GroupsViewController ()
@interface GroupsViewController () <MasterTabBarItemDisplayProtocol>
{
// Tell whether a groups refresh is pending (suspended during editing mode).
BOOL isRefreshPending;
@@ -224,8 +224,6 @@
[self scrollToTop:YES];
}];
[AppDelegate theDelegate].masterTabBarController.navigationItem.title = [VectorL10n titleGroups];
[AppDelegate theDelegate].masterTabBarController.tabBar.tintColor = ThemeService.shared.theme.tintColor;
}
@@ -644,4 +642,11 @@
[self.groupsSearchBar setShowsCancelButton:NO animated:NO];
}
#pragma mark - MasterTabBarItemDisplayProtocol
- (NSString *)masterTabBarItemTitle
{
return [VectorL10n titleGroups];
}
@end