Skip to content

Commit

Permalink
Move default argument from insets to inset (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller authored Dec 13, 2023
1 parent caa8c97 commit 73a3332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Layout/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
public func constrain(
_ view1: UIView,
to view2: UIView,
insets: CanonicalInsets = .zero
insets: CanonicalInsets
) -> Layout {
self
.constrain(view1.left, to: view2.left, constant: insets.left)
Expand All @@ -248,7 +248,7 @@ public final class Layout { // swiftlint:disable:this type_body_length
public func constrain(
_ view1: UIView,
to view2: UIView,
inset: CGFloat
inset: CGFloat = 0
) -> Layout {
constrain(view1,
to: view2,
Expand Down

0 comments on commit 73a3332

Please sign in to comment.