Fix initial layout (IOS-234)
This commit is contained in:
parent
985eb68766
commit
6f58c277c7
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue