From 5becbbb7f1fd7d4bd7dbf2eae785cb5813d85481 Mon Sep 17 00:00:00 2001 From: Scott Pfeil Date: Fri, 21 Jul 2023 09:21:00 -0400 Subject: [PATCH] combine --- .../MVMCoreNavigationHandler.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) 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