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