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 }