Implement more protocols for AdaptableNavigationController

This commit is contained in:
Shadowfacts 2024-08-21 16:23:05 -04:00
parent ce10c7d6e2
commit d321c31776
1 changed files with 14 additions and 0 deletions

View File

@ -134,3 +134,17 @@ extension AdaptableNavigationController: NavigationControllerProtocol {
} }
} }
} }
@available(iOS 17.0, *)
extension AdaptableNavigationController: BackgroundableViewController {
func sceneDidEnterBackground() {
(topViewController as? BackgroundableViewController)?.sceneDidEnterBackground()
}
}
@available(iOS 17.0, *)
extension AdaptableNavigationController: StatusBarTappableViewController {
func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult {
(topViewController as? StatusBarTappableViewController)?.handleStatusBarTapped(xPosition: xPosition) ?? .continue
}
}