From 1ac4a8e9ce9eda9b6984f30855f7ac94c42366af Mon Sep 17 00:00:00 2001 From: Erik Drobne Date: Tue, 1 Oct 2024 22:07:23 +0200 Subject: [PATCH] feature(tabbarcoordinator): make tababar controller an associated type --- .../TabBarCoordinator/TabBarCoordinator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftUICoordinator/TabBarCoordinator/TabBarCoordinator.swift b/Sources/SwiftUICoordinator/TabBarCoordinator/TabBarCoordinator.swift index 1c924da..587c692 100644 --- a/Sources/SwiftUICoordinator/TabBarCoordinator/TabBarCoordinator.swift +++ b/Sources/SwiftUICoordinator/TabBarCoordinator/TabBarCoordinator.swift @@ -6,10 +6,11 @@ public typealias TabBarRouting = Coordinator & TabBarCoordinator @MainActor public protocol TabBarCoordinator: ObservableObject { associatedtype Route: TabBarNavigationRoute + associatedtype TabBarController: UITabBarController var navigationController: NavigationController { get } /// The tab bar controller that manages the tab bar interface. - var tabBarController: UITabBarController { get } + var tabBarController: TabBarController { get } /// The tabs available in the tab bar interface, represented by `Route` types. var tabs: [Route] { get } /// This method should be called to show the `tabBarController`.