Skip to content

Commit 1278528

Browse files
committed
fix: Fix bug where send events were not received in sheet and full sheet
1 parent 7abd29e commit 1278528

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Sources/LinkNavigator/Core/Core/TabLinkNavigator/TabLinkNavigator.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,16 @@ extension TabLinkNavigator {
176176
.flatMap(\.currentTabNavigationController.viewControllers)
177177
.compactMap { $0 as? MatchPathUsable }
178178

179+
if let fullSheetController {
180+
let fullSheetMatchPathUsables = fullSheetController.viewControllers.compactMap { $0 as? MatchPathUsable }
181+
matchPathUsables.insert(contentsOf: fullSheetMatchPathUsables, at: .zero)
182+
}
183+
184+
if let modalController {
185+
let modalMatchPathUsables = modalController.viewControllers.compactMap { $0 as? MatchPathUsable }
186+
matchPathUsables.insert(contentsOf: modalMatchPathUsables, at: .zero)
187+
}
188+
179189
matchPathUsables
180190
.filter { linkItem.pathList.contains($0.matchPath) }
181191
.forEach {

0 commit comments

Comments
 (0)