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?
- How do I check in code whether Focus Style is set to High Contrast?
- How do I get the High Contrast frame on non-
TVPosterView
views?