New items indicator improvements
This commit is contained in:
parent
ab2ad57d6f
commit
b94f63b94b
|
@ -108,6 +108,7 @@
|
|||
"compose-button.accessibility-label.post" = "Compose Post";
|
||||
"compose-button.accessibility-label.toot" = "Compose Toot";
|
||||
"conversation.unread" = "Unread";
|
||||
"dismiss" = "Dismiss";
|
||||
"emoji.custom" = "Custom";
|
||||
"emoji.default-skin-tone" = "Default skin tone";
|
||||
"emoji.default-skin-tone-button.accessibility-label" = "Select default skin tone";
|
||||
|
|
|
@ -90,6 +90,11 @@ class TableViewController: UITableViewController {
|
|||
self?.hideNewItemsView()
|
||||
},
|
||||
for: .touchUpInside)
|
||||
newItemsView.button.accessibilityCustomActions = [
|
||||
UIAccessibilityCustomAction(name: NSLocalizedString("dismiss", comment: "")) { [weak self] _ in
|
||||
self?.hideNewItemsView()
|
||||
return true
|
||||
}]
|
||||
|
||||
setupViewModelBindings()
|
||||
|
||||
|
@ -111,7 +116,7 @@ class TableViewController: UITableViewController {
|
|||
loadMoreView.directionChanged(up: up)
|
||||
}
|
||||
|
||||
if up, newItemsView.alpha > 0 {
|
||||
if newItemsView.alpha > 0 {
|
||||
hideNewItemsView()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue