Skip to content

Commit bfb61d8

Browse files
author
Baris Sencan
committed
Fix helper functions
1 parent 50d2f2e commit bfb61d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ManualLayout/HelperFunctions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ public func inset(rect: CGRect, dx: CGFloat, dy: CGFloat) -> CGRect {
3535
}
3636

3737
public func inset(view: UIView, top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> CGRect {
38-
return inset(view.frame, top, right, bottom, left)
38+
return inset(view.frame, top, left, bottom, right)
3939
}
4040

4141
public func inset(layer: CALayer, top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> CGRect {
42-
return inset(layer.frame, top, right, bottom, left)
42+
return inset(layer.frame, top, left, bottom, right)
4343
}
4444

4545
public func inset(rect: CGRect, top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> CGRect {

0 commit comments

Comments
 (0)