Skip to content

Commit

Permalink
Set Layout properties in order of definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller committed Feb 29, 2024
1 parent 2d96c85 commit 44a97bb
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 44a97bb

Please sign in to comment.