mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-13 18:00:17 +00:00
Copy accessibilityIdentifier to UIAccessibilityElement if a node is assigned
This commit is contained in:
parent
4056bf9ef3
commit
ef31c3abf0
@ -407,6 +407,7 @@ static const char *ASDisplayNodeAssociatedNodeKey = "ASAssociatedNode";
|
||||
objc_setAssociatedObject(self, ASDisplayNodeAssociatedNodeKey, node, OBJC_ASSOCIATION_ASSIGN); // Weak reference to avoid cycle, since the node retains the layer.
|
||||
|
||||
// Update UIAccessibilityElement properties from node
|
||||
self.accessibilityIdentifier = node.accessibilityIdentifier;
|
||||
self.accessibilityLabel = node.accessibilityLabel;
|
||||
self.accessibilityHint = node.accessibilityHint;
|
||||
self.accessibilityValue = node.accessibilityValue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user