Fix autolayout conflict

This commit is contained in:
Justin Mazzocchi 2022-11-27 22:49:32 -08:00
parent 0e46a0eb28
commit bdd63e2cfb

View file

@ -877,8 +877,8 @@ private extension TableViewController {
func hideNewItemsView() { func hideNewItemsView() {
UIView.animate(withDuration: .zeroIfReduceMotion(.defaultAnimationDuration)) { UIView.animate(withDuration: .zeroIfReduceMotion(.defaultAnimationDuration)) {
self.newItemsView.alpha = 0 self.newItemsView.alpha = 0
self.newItemsViewHiddenConstraint?.isActive = true
self.newItemsViewVisibleConstraint?.isActive = false self.newItemsViewVisibleConstraint?.isActive = false
self.newItemsViewHiddenConstraint?.isActive = true
self.view.layoutIfNeeded() self.view.layoutIfNeeded()
} completion: { _ in } completion: { _ in
self.reloadVisibleItems() self.reloadVisibleItems()