I'm trying to set accessibility identifier. I look into this sample:
myBarButton.accessibilityIdentifier = @"I am a test button!";
But I don't get the accessibilityIdentifier in swift.
Any of you knows how can I set the accessibilityIdentifier in swift?
UIBarButtonItem
does not implement UIAccessibilityIdentification
, so setting accessibilityIdentifier
doesn't work.
Instead try
myBarButton.accessibilityLabel = "I am a test button!"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With