diff --git a/components/BottomNavigation/examples/BottomNavigationHideShowExample.swift b/components/BottomNavigation/examples/BottomNavigationHideShowExample.swift index 8a1beeb2e51..649fba69565 100644 --- a/components/BottomNavigation/examples/BottomNavigationHideShowExample.swift +++ b/components/BottomNavigation/examples/BottomNavigationHideShowExample.swift @@ -18,6 +18,7 @@ import MaterialComponents.MaterialBottomNavigation_BottomNavigationController import MaterialComponents.MaterialBottomNavigation_Theming import MaterialComponents.MaterialContainerScheme +@available(iOS 12.0, *) class BottomNavigationHideShowExample: UIViewController { static let cellReuseIdentifier = "cell" static let numberOfCells = 40 @@ -73,6 +74,7 @@ class BottomNavigationHideShowExample: UIViewController { } } +@available(iOS 12.0, *) extension BottomNavigationHideShowExample: UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return BottomNavigationHideShowExample.numberOfCells @@ -88,6 +90,7 @@ extension BottomNavigationHideShowExample: UITableViewDataSource { } // MARK: Catalog by convention +@available(iOS 12.0, *) extension BottomNavigationHideShowExample { @objc class func catalogMetadata() -> [String: Any] { return [ @@ -96,9 +99,14 @@ extension BottomNavigationHideShowExample { "presentable": false, ] } + + @objc class func minimumOSVersion() -> OperatingSystemVersion { + return OperatingSystemVersion(majorVersion: 12, minorVersion: 0, patchVersion: 0) + } } // MARK: Snapshot Testing by Convention +@available(iOS 12.0, *) extension BottomNavigationHideShowExample { @objc func testAdjustsContentInsetsForHiddenBottomBar() { toggleBottomBar(animated: false) diff --git a/components/BottomNavigation/src/MDCBottomNavigationBarController.h b/components/BottomNavigation/src/MDCBottomNavigationBarController.h index 75e74ca566b..b1523ede021 100644 --- a/components/BottomNavigation/src/MDCBottomNavigationBarController.h +++ b/components/BottomNavigation/src/MDCBottomNavigationBarController.h @@ -37,6 +37,7 @@ preserved. Upon decoding, if the view controllers array contains a reference to the previous selected view controller, that view controller is set to selected. */ +API_AVAILABLE(ios(12.0)) @interface MDCBottomNavigationBarController : UIViewController /**