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
1 changed files with 8 additions and 0 deletions

View File

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