Why is UIAccessibility.post(notification: .announcement, argument: “arg”) not announced in voice over?

前端 未结 4 2283
温柔的废话
温柔的废话 2021-02-14 20:34

When using Voice Over in iOS, calling UIAccessibility.post(notification:argument:) to announce a field error doesn\'t actually announce the error.

I have a

4条回答
  •  眼角桃花
    2021-02-14 21:04

    Another work around is to use .screenChanged instead and pass the error label, as:

    UIAccessibility.post(notification: .screenChanged, argument: errorLabel)
    

提交回复
热议问题