Skip to content

Commit

Permalink
Merge pull request #44 from erikdrobne/feature/tabbar-improvements
Browse files Browse the repository at this point in the history
TabBarCoordinator: Make TabBarController an associated type
  • Loading branch information
erikdrobne authored Oct 3, 2024
2 parents 3bf482c + 1ac4a8e commit 94e3959
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 94e3959

Please sign in to comment.