# \#accessibility

**URL:** https://forums.swift.org/tag/accessibility/207.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Assert that a View has a specific accessibility traits modifier](https://forums.swift.org/t/assert-that-a-view-has-a-specific-accessibility-traits-modifier/84110)

<div class="topic-metadata">

**Author:** [@feed0](https://forums.swift.org/u/feed0)\
**Replies:** 2\
**Last updated:** [January 13, 2026, 2:55pm UTC](https://forums.swift.org/t/assert-that-a-view-has-a-specific-accessibility-traits-modifier/84110 "2026-01-13T14:55:09Z")

</div>

I have a project using #ViewInspector , which doesn’t seem to have a means to test #accessibilityTraits on view. Is there any other approach? What I have: struct MyView: View { Text("Header") .accessibil…

---

## [Is it possible to dump / introspect my own Accessibility tree at runtime (SwiftUI)?](https://forums.swift.org/t/is-it-possible-to-dump-introspect-my-own-accessibility-tree-at-runtime-swiftui/83728)

<div class="topic-metadata">

**Author:** [@bertugyilmaz](https://forums.swift.org/u/bertugyilmaz)\
**Replies:** 1\
**Last updated:** [December 17, 2025, 8:36pm UTC](https://forums.swift.org/t/is-it-possible-to-dump-introspect-my-own-accessibility-tree-at-runtime-swiftui/83728 "2025-12-17T20:36:33Z")

</div>

Hi, I’m working on a SwiftUI iOS app and I’d like to inspect / dump my own app’s accessibility structure (AX tree) at runtime, ideally on real devices. By “AX tree” I mean the resolved accessibility hierarchy the syste…

---

## [Examples of great documentation or lectures that are also accessible to engineers without sight?](https://forums.swift.org/t/examples-of-great-documentation-or-lectures-that-are-also-accessible-to-engineers-without-sight/74074)

<div class="topic-metadata">

**Author:** [@vanvoorden](https://forums.swift.org/u/vanvoorden)\
**Replies:** 1\
**Last updated:** [September 10, 2024, 3:59am UTC](https://forums.swift.org/t/examples-of-great-documentation-or-lectures-that-are-also-accessible-to-engineers-without-sight/74074 "2024-09-10T03:59:26Z")

</div>

Hi! I'm an engineer and I have what would be considered "typical" ability to read and see… but I am trying to be very thoughtful about accessibility moving forward when writing technical documentation and preparing prese…

---

## [Dynamic PDFs with accessibility tags using PDFkit](https://forums.swift.org/t/dynamic-pdfs-with-accessibility-tags-using-pdfkit/67419)

<div class="topic-metadata">

**Author:** [@AngelaTheSavage](https://forums.swift.org/u/AngelaTheSavage)\
**Replies:** 0\
**Last updated:** [September 21, 2023, 3:27pm UTC](https://forums.swift.org/t/dynamic-pdfs-with-accessibility-tags-using-pdfkit/67419 "2023-09-21T15:27:40Z")

</div>

Is there any documentation available on how to generate PDFs with accessibility tags using PDFkit in Swift? I'm having a hard time trying to figure this out. There is hardly any documentation available. I checked the Ap…

---

## [Issue with Accessibility Visible Text Range](https://forums.swift.org/t/issue-with-accessibility-visible-text-range/66528)

<div class="topic-metadata">

**Author:** [@BadPistol97](https://forums.swift.org/u/BadPistol97)\
**Replies:** 0\
**Last updated:** [August 2, 2023, 9:30am UTC](https://forums.swift.org/t/issue-with-accessibility-visible-text-range/66528 "2023-08-02T09:30:21Z")

</div>

I am trying to draw NSPanels on texts of other apps using AXObserverAddNotification with the attribute of kAXValueChangedNotification on an AXTextArea I need to detect if the text range on that text area is visible on t…

---

## [How to detect if focused has changed on Mac OS](https://forums.swift.org/t/how-to-detect-if-focused-has-changed-on-mac-os/66424)

<div class="topic-metadata">

**Author:** [@BadPistol97](https://forums.swift.org/u/BadPistol97)\
**Replies:** 1\
**Last updated:** [July 28, 2023, 7:58am UTC](https://forums.swift.org/t/how-to-detect-if-focused-has-changed-on-mac-os/66424 "2023-07-28T07:58:44Z")

</div>

Is there any API to detect if the focus has changed to other apps on MacOS? I need to know when is the focus taken and get the top app name so I can clear the floating panels on the last focused app.

---

## [Can we switch the blue “keyword” colors between light and dark modes?](https://forums.swift.org/t/can-we-switch-the-blue-keyword-colors-between-light-and-dark-modes/20047)

<div class="topic-metadata">

**Author:** [@Nevin](https://forums.swift.org/u/Nevin)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 3:31am UTC](https://forums.swift.org/t/can-we-switch-the-blue-keyword-colors-between-light-and-dark-modes/20047 "2019-02-01T03:31:47Z")

</div>

Certain keywords appear blue in code blocks. For example: c dropFirst dropLast filter join map reduce reverse sort In particular, these keywords appear light blue when viewing the forum with the light theme, and dark b…
