mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-11 17:00:02 +00:00
14 lines
443 B
Swift
14 lines
443 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
|
|
public func addAccessibilityChildren(of node: ASDisplayNode, to list: inout [Any]) {
|
|
if node.isAccessibilityElement {
|
|
node.accessibilityFrame = UIAccessibilityConvertFrameToScreenCoordinates(node.bounds, node.view)
|
|
list.append(node)
|
|
} else if let accessibilityElements = node.accessibilityElements {
|
|
list.append(contentsOf: accessibilityElements)
|
|
}
|
|
}
|
|
|