diff --git a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.swift b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.swift index c5f1b19..8debe26 100644 --- a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.swift +++ b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.swift @@ -7,6 +7,7 @@ // import Foundation +import Combine @objc open class MVMCoreNavigationHandler2: NSObject, UINavigationControllerDelegate { public enum NavigationType { @@ -32,6 +33,16 @@ import Foundation }() let delegates: NSHashTable = NSHashTable.weakObjects() + + // MARK: - Publishers + + /// Publishes when the navigation will begin + public let onNavigationWillBegin = PassthroughSubject<(NavigationType, [UIViewController]), Never>() + + /// Publishes when a viewcontroller did show. + public let onNavigationDidFinish = PassthroughSubject<(NavigationType), Never>() + + // MARK: - // MARK: - Delegate Handling