Skip to content

Commit

Permalink
Set Layout properties in order of definition (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller authored Mar 2, 2024
1 parent 67dc8ce commit fbd8595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Layout/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fbd8595

Please sign in to comment.