Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/Layout/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
guard views.count >= 2,
let first: UIView = views.first
else { return self }
for view in views.dropFirst() {
for view: UIView in views.dropFirst() {
adding(view.constraints(to: attributes, of: first))
}
return self
Expand Down Expand Up @@ -592,13 +592,13 @@ public final class Layout { // swiftlint:disable:this type_body_length
switch direction {
case .leadingToTrailing:
var anchor: NSLayoutXAxisAnchor = first.trailing
for view in views.dropFirst() {
for view: UIView in views.dropFirst() {
adding(view.leading.constraint(to: anchor, constant: spacing).withPriority(priority))
anchor = view.trailing
}
case .leftToRight:
var anchor: NSLayoutXAxisAnchor = first.right
for view in views.dropFirst() {
for view: UIView in views.dropFirst() {
adding(view.left.constraint(to: anchor, constant: spacing).withPriority(priority))
anchor = view.right
}
Expand Down Expand Up @@ -636,7 +636,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
let first: UIView = views.first
else { return self }
var anchor: NSLayoutYAxisAnchor = first.bottom
for view in views.dropFirst() {
for view: UIView in views.dropFirst() {
adding(view.top.constraint(to: anchor, constant: spacing).withPriority(priority))
anchor = view.bottom
}
Expand Down