In SwiftUI you won't find the .notEnabled accessibility trait. Instead, you can just configure a view as such with .disabled(true), and pass false to enable it. VoiceOver will announce it as "dimmed".

https://developer.apple.com/documentation/swiftui/view/disabled(:)

The start analyzing button in the Stock Analyzer app is disabled. It is enabled once the user toggles on that they understand Stock Analyzer is not responsible for any profits or losses based on the insights gathered in the app. We call .disabled(_: ) in the button and pass the $checked state as a parameter, which is the state of the toggle.