From 17cd7e4e83f0b8b3a706569f2f37109ac426c241 Mon Sep 17 00:00:00 2001 From: ASPCartman Date: Sun, 19 Jan 2020 03:37:40 +0800 Subject: [PATCH] Fix reload() For some reason `activateConstraints` and `deactivateConstraints` might contain same constraints. That requires further investigation but deactivating after activating solves the consequences of the issue in my case. --- EasyPeasy/Item.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EasyPeasy/Item.swift b/EasyPeasy/Item.swift index c6c67f1..0556cd5 100644 --- a/EasyPeasy/Item.swift +++ b/EasyPeasy/Item.swift @@ -86,8 +86,8 @@ extension Item { } // Activate/deactivate the resulting `NSLayoutConstraints` - NSLayoutConstraint.deactivate(deactivateConstraints) NSLayoutConstraint.activate(activateConstraints) + NSLayoutConstraint.deactivate(deactivateConstraints) } /**