Accessibility in SwiftUI: modifiers and combining elements
Essence
SwiftUI builds the accessibility tree from the view tree: Text becomes static text, Button a button labelled by its content, Toggle a switch with a value. Standard controls are accessible "for free"; the work starts when you build UI out of Image, gestures and stacks.
The rest of this answer, with code and interview follow-ups, is in the DevPrep app.
Read the full answer in DevPrep