 
     view.backgroundColor = containerScheme.colorScheme.backgroundColor
     view.addSubview(bottomNavBar)
+    bottomNavBar.delegate = self
 
     // Always show bottom navigation bar item titles.
     bottomNavBar.titleVisibility = .always

    bottomNavBar.alignment = .centered

    // Add items to the bottom navigation bar.
    let tabBarItem1 = UITabBarItem(title: "Home", image: UIImage(named: "Home"), tag: 0)
    let tabBarItem2 =
      UITabBarItem(title: "Messages", image: UIImage(named: "Email"), tag: 0)
    bottomNavBar.items = [ tabBarItem1, tabBarItem2 ]

    // Select a bottom navigation bar item.

    super.viewWillAppear(animated)
    self.navigationController?.setNavigationBarHidden(true, animated: animated)
  }

  func bottomNavigationBar(
    _ bottomNavigationBar: MDCBottomNavigationBar,
    didSelect item: UITabBarItem
  ) {
    if (item == tabBarItem1) {
      tabBarItem1.badgeValue = nil
      tabBarItem1.accessibilityValue = ""
    }
  }
}

// MARK: Catalog by convention
