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

View File

@@ -16,7 +16,7 @@
import Foundation
class HomeViewControllerWithBannerWrapperViewController: UIViewController, MXKViewControllerActivityHandling, BannerPresentationProtocol {
class HomeViewControllerWithBannerWrapperViewController: UIViewController, MXKViewControllerActivityHandling, BannerPresentationProtocol, MasterTabBarItemDisplayProtocol {
@objc let homeViewController: HomeViewController
private var bannerContainerView: UIView!
@@ -107,4 +107,10 @@ class HomeViewControllerWithBannerWrapperViewController: UIViewController, MXKVi
func stopActivityIndicator() {
homeViewController.stopActivityIndicator()
}
// MARK: - MasterTabBarItemDisplayProtocol
var masterTabBarItemTitle: String {
return VectorL10n.titleHome
}
}