Is there no way to check in code if the "Focus Style: High Contrast" accessibility setting on tvOS is active?

On tvOS you can choose Settings > Accessibility > Display > Focus Style > High Contrast to have teasers highlighted by a white border when focused:

However, I cannot find out how to use this feature on my own custom views. It seems that only TVPosterView makes use of this High Contrast accessibility setting. I'd like to be able to show such a frame on my custom views if this setting is enabled but I cannot find how to check if it's enabled.

None of the bools listed on https://developer.apple.com/documentation/uikit/uiaccessibility under Capabilities (like isVoiceOverRunning, isGuidedAccessEnabled, isReduceTransparencyEnabled, etc.) seems to refer to this Focus Style setting.

Can anybody point me in the right direction?

  1. How do I check in code whether Focus Style is set to High Contrast?
  2. How do I get the High Contrast frame on non-TVPosterView views?
Answered by Engineer in 690155022

There isn't currently a way to observer this setting, please file a request through feedback assistant for this functionality.

Accepted Answer

There isn't currently a way to observer this setting, please file a request through feedback assistant for this functionality.

Is there no way to check in code if the "Focus Style: High Contrast" accessibility setting on tvOS is active?
 
 
Q