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

import MaterialComponents.MaterialBottomNavigation_Theming
import MaterialComponents.MaterialContainerScheme

class BottomNavigationNilBadges : UIViewController {

  @objc var containerScheme: MDCContainerScheming = MDCContainerScheme()

  // Create a bottom navigation bar to add to a view.
  let bottomNavBar = MDCBottomNavigationBar()

  init() {
    super.init(nibName: nil, bundle: nil)

    bottomNavBar.alignment = .centered

    // Add items to the bottom navigation bar.
    tabBarItem1.accessibilityValue = "New items"

    bottomNavBar.items = [ tabBarItem1, tabBarItem2 ]

    // Select a bottom navigation bar item.
