Wednesday, September 9, 2026
HomeiOS DevelopmentiOS Accessibility Pressure Voiceover on isUserInteractionDisabled Component

iOS Accessibility Pressure Voiceover on isUserInteractionDisabled Component

[ad_1]

I’m utilizing an overlay when loading happens. It makes use of the window and provides a baby view that exhibits the loading indicator after which the window additionally has its person interplay disabled.

Nonetheless, when the person interplay is disabled, voice over now not responds when the person faucets the display. I need it to say "Loading" however it solely makes a beep. If I flip person interplay on (which I do not need), it does announce that it’s loading.

Is there a method to enable voice over narration for an merchandise which has no person interplay allowed? I attempted utilizing some traits however nothing labored. Ideally I need the voice over to learn loading any time the person faucets anyplace on the display (window). Heres an instance what I attempted however has not labored

window.addSubview(loadingIndicator) // Takes up complete display
window.isUserInteractionEnabled = false
window.accessibilityLabel = "Loading"
window.isAccessibilityElement = true
window.accessibilityTraits = [.staticText, .allowsDirectInteraction]

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments