Commit 29382d4d by Daniel Dahan

layout update reorder

parent dfaad27c
...@@ -636,10 +636,10 @@ fileprivate extension Layout { ...@@ -636,10 +636,10 @@ fileprivate extension Layout {
*/ */
class func updateConstraints(for view: UIView) { class func updateConstraints(for view: UIView) {
Motion.async { Motion.async {
view.setNeedsLayout()
view.layoutIfNeeded()
view.updateConstraintsIfNeeded() view.updateConstraintsIfNeeded()
view.updateConstraints() view.updateConstraints()
view.setNeedsLayout()
view.layoutIfNeeded()
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment