added condition to check if view is available

This commit is contained in:
Arun Kumar Chintakrinda 2024-08-05 20:32:09 +05:30
parent 0d6fc3d15d
commit 100ede48fa

View File

@ -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() {