From 100ede48faba98e73a085e8eefce237c7210c595 Mon Sep 17 00:00:00 2001 From: Arun Kumar Chintakrinda Date: Mon, 5 Aug 2024 20:32:09 +0530 Subject: [PATCH] added condition to check if view is available --- MVMCoreUI/Managers/SubNav/SubNavManagerController.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Managers/SubNav/SubNavManagerController.swift b/MVMCoreUI/Managers/SubNav/SubNavManagerController.swift index 8918c522..50d5063e 100644 --- a/MVMCoreUI/Managers/SubNav/SubNavManagerController.swift +++ b/MVMCoreUI/Managers/SubNav/SubNavManagerController.swift @@ -345,7 +345,10 @@ open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol, } @objc public func getAccessibilityElements() -> [Any]? { - [tabs, subNavigationController.view!] + guard let navigationControllerView = subNavigationController.view else { + return [tabs] + } + return [tabs, navigationControllerView] } open override func observeForResponseJSONUpdates() {