SwiftUIX / Coordinator

A declarative navigation API for SwiftUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swallow Lib not being imported

fampaySiddharth opened this issue · comments

Compilation error in UIViewControllerCoordinator:
Coordinator/Sources/Intramodular/Bridging/AppKitOrUIKitViewControllerCoordinatorType.swift:57:13 Cannot find 'runtimeIssue' in scope

 public override func triggerPublisher(for route: Route) -> AnyPublisher<ViewTransitionContext, Error> {
        guard let rootViewController = rootViewController else {
            runtimeIssue("Could not resolve a root view controller.") // <--- Here
            
            return .failure(TriggerError.rootViewControllerMissing)
        }
        
        return transition(for: route)
            .environment(environmentInsertions)
            .triggerPublisher(in: rootViewController, animated: true, coordinator: self)
            .handleOutput { [weak self] _ in
                self?.updateAllChildren()
            }
            .eraseToAnyPublisher()
    }

This should be fixed now.