We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal struct AccessibleHeader { static func create(usingChart chart: ChartViewBase, andData data: ChartData, withDefaultDescription defaultDescription: String = "Chart") -> NSUIAccessibilityElement { let chartDescriptionText = chart.chartDescription.text ?? defaultDescription let dataSetDescriptions = data.map { $0.label ?? "" } let dataSetDescriptionText = dataSetDescriptions.joined(separator: ", ") let element = NSUIAccessibilityElement(accessibilityContainer: chart) element.accessibilityLabel = chartDescriptionText + ". \(data.count) dataset\(data.count == 1 ? "" : "s"). \(dataSetDescriptionText)" element.accessibilityFrame = chart.bounds element.isHeader = true return element } }
How can I avoid to set isHeader?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How can I avoid to set isHeader?
The text was updated successfully, but these errors were encountered: