Fix initial layout (IOS-234)

This commit is contained in:
Nathan Mattes 2024-04-07 13:04:33 +02:00
parent 985eb68766
commit 6f58c277c7
1 changed files with 2 additions and 0 deletions

View File

@ -486,6 +486,8 @@ extension HomeTimelineViewController {
private func showTimelinePill() { private func showTimelinePill() {
guard let timelinePillHiddenTopAnchor, let timelinePillVisibleTopAnchor else { return } guard let timelinePillHiddenTopAnchor, let timelinePillVisibleTopAnchor else { return }
timelinePill.setNeedsLayout()
timelinePill.layoutIfNeeded()
timelinePill.alpha = 0 timelinePill.alpha = 0
NSLayoutConstraint.deactivate([timelinePillHiddenTopAnchor]) NSLayoutConstraint.deactivate([timelinePillHiddenTopAnchor])
NSLayoutConstraint.activate([timelinePillVisibleTopAnchor]) NSLayoutConstraint.activate([timelinePillVisibleTopAnchor])