Skip to content

Commit

Permalink
Use to: argument label
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller committed Feb 20, 2024
1 parent 380a13b commit afa79a5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Sources/Layout/UIKit/UIView+AutoLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ extension UIView {
guard let superview: UIView
else { return [] }
return [
leading.constraint(equalTo: superview.leading, constant: insets.leading),
trailing.constraint(equalTo: superview.trailing, constant: -insets.trailing),
top.constraint(equalTo: superview.top, constant: insets.top),
bottom.constraint(equalTo: superview.bottom, constant: -insets.bottom)
leading.constraint(to: superview.leading, constant: insets.leading),
trailing.constraint(to: superview.trailing, constant: -insets.trailing),
top.constraint(to: superview.top, constant: insets.top),
bottom.constraint(to: superview.bottom, constant: -insets.bottom)
]
}

Expand All @@ -348,10 +348,10 @@ extension UIView {
guard let superview: UIView
else { return [] }
return [
left.constraint(equalTo: superview.left, constant: insets.left),
right.constraint(equalTo: superview.right, constant: -insets.right),
top.constraint(equalTo: superview.top, constant: insets.top),
bottom.constraint(equalTo: superview.bottom, constant: -insets.bottom)
left.constraint(to: superview.left, constant: insets.left),
right.constraint(to: superview.right, constant: -insets.right),
top.constraint(to: superview.top, constant: insets.top),
bottom.constraint(to: superview.bottom, constant: -insets.bottom)
]
}

Expand All @@ -368,8 +368,8 @@ extension UIView {
guard let superview: UIView
else { return [] }
return [
left.constraint(equalTo: superview.left, constant: inset),
right.constraint(equalTo: superview.right, constant: -inset)
left.constraint(to: superview.left, constant: inset),
right.constraint(to: superview.right, constant: -inset)
]
}
}

0 comments on commit afa79a5

Please sign in to comment.