我有一个UISwitch
在表视图单元格内。切换器发出网络请求。 AUIActivityIndicator
替换开关直到响应完成。
所以用户体验流程是这样的:
off --> loader --> on
在点击标签之前,可访问性如下所示:
label - value - hint
‘streaming - switch button off - double tap to toggle switch’
我的代码是这样的:
@IBAction func switchToggled(_ sender: Any) {
toggle.isHidden = true
activityIndicatorView.startAnimating()
UIAccessibility.post(notification: .layoutChanged, argument: activityIndicatorView)
我也曾disabled细胞本身的可及性。
问题是可访问性将如下所示:
$switchValue - activityIndicatorLabel-activityIndicatorValue - switchLabel switchValue
off - streaming - in progress - streaming - switch button on
我不确定为什么在我设置切换后辅助功能仍然可以读取isHidden
to true
还发布了无障碍通知
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)