Adding additional logging

This commit is contained in:
Subramaniam, Ramya 2024-06-19 12:49:50 +05:30
parent 81510315e4
commit 6399e0411e

View File

@ -143,6 +143,9 @@ public class NavigationHandler {
- Parameter delegateObject: A delegate object for various delegations.
*/
public func navigate(with type: NavigationType, tryToReplace: Bool = true, delegateObject: DelegateObject? = nil) async {
MVMCoreLoggingHandler.logDebugMessage(withDelegate: ": we are in setViewController in MobileFirst:\(String(describing: tryToReplace))")
let operation = await NavigationOperation(with: type, tryToReplace: tryToReplace, delegate: delegateObject?.presentationDelegate)
await navigate(with: operation)
}
@ -158,7 +161,11 @@ public class NavigationHandler {
}
public func set(viewControllers: [UIViewController], navigationController: UINavigationController? = nil, delegateObject: DelegateObject? = nil, animated: Bool = true) async {
MVMCoreLoggingHandler.logDebugMessage(withDelegate: "\(type(of: self)): we are in navigation handler setViewController in MVMCore:\(String(describing: viewControllers))")
guard let navigationController = navigationController ?? self.navigationController else { return }
MVMCoreLoggingHandler.logDebugMessage(withDelegate: "\(type(of: self)): we are in navigation handler setViewController - navigationController in MVMCore:\(String(describing: navigationController))")
await NavigationHandler.shared().navigate(with: .set(viewControllers: viewControllers, navigationController: navigationController, animated: animated), delegateObject: delegateObject)
}