combine
This commit is contained in:
parent
2466d06698
commit
5becbbb7f1
@ -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<MVMCorePresentationDelegateProtocol> = 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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user