Voiceover of UIAlertController
by default announces title's accessibilityTrait
as static text.
I'm trying to change the accessibilityTrait
to be of type header
and can't seem to have a direct way to access title label and modify the attribute. Only solution seems to be to add custom label to be able to modify accessibilityTrait
. Now, this got me wondering should the default behavior of UIAlertController be left untouched?
Have anyone else tried to do this? And, is there any other way to customize accessibilityTrait
of UIAlertController
title label that I'm missing out on?
Thanks in advance.