SwiftUIX / Coordinator

A declarative navigation API for SwiftUI.
MIT License
252 stars 21 forks source link

Swallow Lib not being imported #4

Closed fampaySiddharth closed 1 year ago

fampaySiddharth commented 1 year ago

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()
    }
vmanot commented 1 year ago

This should be fixed now.