Closed irskep closed 5 years ago
If I understand correctly, if VoiceOver is available, you are adding CloseButton, yes?
No, that isn't what's happening. The closeButton
is still only added if you request it. I do have it add an accessibility label regardless of whether it's shown in case the user does something weird to add it manually.
It does add an extra invisible close button over the chevron to add a bigger tap target, maybe that's what you're referring to?
@irskep you use
NSLocalizedString("Close", comment: "")
but in project no file with localisation... it need?
Seeing as how I don't know any other languages, that sounds like future work. Surely it's better to have one translation than zero?
It won't crash, if that's what you mean.
@irskep class ns localization try get translation by key ‘Close’. Maybe set simple string?
I'm not sure what you mean. If you run this in practice, it says "close," and if you're not using English it will still fall back to the English word. No translation file is required for this code to run. It's just standard practice to wrap all user-facing strings in NSLocalizedString().
@irskep I am tested and found bug in this line:
accessibleIndicatorOverlayButton.bottomAnchor.constraint(equalTo: self.indicatorView.bottomAnchor),
Indicator optional, and sometimes not added to superview. Need set fix height. Please, fix it.
@ivanvorobei I'm confused how that's possible. The invisible button is not added if the indicator is not added. What were the steps to reproduce?
@irskep sorry, I did not read the changes carefully. You are right, this code will work correctly. Everything is fine, I will accept the request today or tomorrow.
Thanks for your work!
Fixes #80 by