Add accessibility labels to custom disclosure button
This commit is contained in:
parent
a7bee3a6d5
commit
2c3f665b58
|
@ -117,8 +117,10 @@ class MasterFeedTableViewCell : NNWTableViewCell {
|
||||||
|
|
||||||
UIView.animate(withDuration: duration) {
|
UIView.animate(withDuration: duration) {
|
||||||
if self.isDisclosureExpanded {
|
if self.isDisclosureExpanded {
|
||||||
|
self.disclosureButton?.accessibilityLabel = NSLocalizedString("Collapse Folder", comment: "Collapse Folder")
|
||||||
self.disclosureButton?.imageView?.transform = CGAffineTransform(rotationAngle: 1.570796)
|
self.disclosureButton?.imageView?.transform = CGAffineTransform(rotationAngle: 1.570796)
|
||||||
} else {
|
} else {
|
||||||
|
self.disclosureButton?.accessibilityLabel = NSLocalizedString("Expand Folder", comment: "Expand Folder")
|
||||||
self.disclosureButton?.imageView?.transform = CGAffineTransform(rotationAngle: 0)
|
self.disclosureButton?.imageView?.transform = CGAffineTransform(rotationAngle: 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue