iOS 中的模糊效果会忽略可访问性("reduce transparency" 选项)?

Blur effect in iOS which ignores accessibilty ("reduce transparency" option)?

我有一个模糊的视图覆盖了其他视图。

UIVisualEffectView 不合适,因为当用户设置 Accessibility >> Reduce transparency.

时它被禁用

您能否建议如何始终独立于设备设置显示此模糊? UIVisualEffectView和自定义控件都适用。 swift 和 objC 解决方案都适用

您可以使用以下方法阻止辅助功能应用于视图:

self.accessibilityElementsHidden = YES;

话虽如此,您不应该违反人机界面指南。辅助功能的存在是有充分理由的。

Human Interface Guidelines - Accessibility

这里摘录一些Apple的App Store Review Guidelines来解释。

10.1 Apps must comply with all terms and conditions explained in the Apple iOS Human Interface Guidelines

10.3 Apps that do not use system provided items, such as buttons and icons, correctly and as described in the Apple iOS Human Interface Guidelines may be rejected