Dismiss new items indicator on accessibility scroll

This commit is contained in:
Justin Mazzocchi 2021-02-25 17:02:50 -08:00
parent cdd54957f7
commit f0eeb558a5
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -183,6 +183,14 @@ class TableViewController: UITableViewController {
sizeTableHeaderFooterViews()
}
override func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool {
if newItemsView.alpha > 0 {
hideNewItemsView()
}
return super.accessibilityScroll(direction)
}
}
extension TableViewController {