From df2fa3405b863ed01458a6f53dbfe7f714d6b387 Mon Sep 17 00:00:00 2001 From: Keerthy Date: Thu, 2 Nov 2023 18:46:27 +0530 Subject: [PATCH] Updated delegateObject and delegate properties removed weak ref for delegateObject. updated delegate as delegate.loadDelegate --- MVMCoreUI/Accessibility/AccessibilityHandler.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Accessibility/AccessibilityHandler.swift b/MVMCoreUI/Accessibility/AccessibilityHandler.swift index 96053673..2cfcf4a9 100644 --- a/MVMCoreUI/Accessibility/AccessibilityHandler.swift +++ b/MVMCoreUI/Accessibility/AccessibilityHandler.swift @@ -56,8 +56,8 @@ open class AccessibilityHandler { public var accessibilityId: String? ///This property is used to post accessibility to the UIElement mapped to this accessibilityId public var previousAccessiblityElement: Any? ///This property is capture accessiblity element public var anyCancellable: Set = [] - public weak var delegate: MVMCoreViewControllerProtocol? { delegateObject?.moleculeDelegate as? MVMCoreViewControllerProtocol } - public weak var delegateObject: MVMCoreUIDelegateObject? + public weak var delegate: MVMCoreViewControllerProtocol? { delegateObject?.loadDelegate as? MVMCoreViewControllerProtocol } + public var delegateObject: MVMCoreUIDelegateObject? private var hasTopNotificationInPage: Bool { delegate?.loadObject??.responseJSON?.optionalDictionaryForKey("TopNotification") != nil || delegate?.loadObject??.responseInfoMap?.optionalStringForKey("messageStyle") != nil } private let accessibilityOperationQueue: OperationQueue = { let queue = OperationQueue()