I need to know when Accessibility Voice Over is on because I want to "unEnable" the modifier.onTapGesture{} which interferes with the Accessibility gestures.
My whole screen is filled with buttons and textfields that respond to touch and my code is confused when Voice Over is on.
I Found:
but I need to see a sample how to use it! I've not coded Notifications before.
I've been reading google search and I do not need Notifications. Just a simple way to set a variable true or false depending on Voice Over is on.
more reading revels this:
so, I will read how to use it...
My whole screen is filled with buttons and textfields that respond to touch and my code is confused when Voice Over is on.
I Found:
Code Block UIAccessibility.voiceOverStatusDidChangeNotification
but I need to see a sample how to use it! I've not coded Notifications before.
I've been reading google search and I do not need Notifications. Just a simple way to set a variable true or false depending on Voice Over is on.
more reading revels this:
Code Block isVoiceOverRunning
so, I will read how to use it...
Found it!. But the explanation is not so tricky. Simply put the answer is Yes in SwiftUI to directly detect if voice over is on use:
I tried this to find it and read another post from @OOPer, Thanks
1) if isVoiceOverRunning {}. not in scope error
2) if Accessibility.isVoiceOverRunning {}. Accessibility has no member "isVoiceOverRunning"
3) if UIAccessibility.isVoiceOverRunning().
Sweet success. I re-discovered it. Yeepee. 😀
I was missing the UI of UIAccessibility. and Quick help was not helping me and @OOPer did.
Code Block if UIAccessibility.isVoiceOverRunning {}
I tried this to find it and read another post from @OOPer, Thanks
1) if isVoiceOverRunning {}. not in scope error
2) if Accessibility.isVoiceOverRunning {}. Accessibility has no member "isVoiceOverRunning"
3) if UIAccessibility.isVoiceOverRunning().
Sweet success. I re-discovered it. Yeepee. 😀
I was missing the UI of UIAccessibility. and Quick help was not helping me and @OOPer did.