From 44a97bb5ec146bf866677ea3ed8ddf3e7fe65956 Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Thu, 29 Feb 2024 07:24:08 -0800 Subject: [PATCH] Set Layout properties in order of definition --- 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 a0f20114..5cd6a0ab 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 }