From fbd8595c45e252e997ceeaa99c77bade23b9764f Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Sat, 2 Mar 2024 08:08:00 -0800 Subject: [PATCH] Set Layout properties in order of definition (#364) --- Sources/Layout/Layout.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Layout/Layout.swift b/Sources/Layout/Layout.swift index 8715aad7..689856ff 100644 --- a/Sources/Layout/Layout.swift +++ b/Sources/Layout/Layout.swift @@ -135,10 +135,10 @@ public final class Layout { // swiftlint:disable:this type_body_length if subview.superview != view { view?.addSubview(subview) } - adding(item.superviewConstraints(item)) if let key: String = subview.identifier, !key.isEmpty { self.items[key] = subview } + adding(item.superviewConstraints(item)) } return self }