1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-02-02 18:36:44 +01:00

Fix initial layout (IOS-234)

This commit is contained in:
Nathan Mattes 2024-04-07 13:04:33 +02:00
parent 985eb68766
commit 6f58c277c7

View File

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