Skip to content

Commit ccdc2e0

Browse files
author
Luc Dion
committed
Update PEdgeInsets methods
1 parent e8c01cf commit ccdc2e0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Sources/Extensions/PEdgeInsets+Operators.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
public extension PEdgeInsets {
33
public func inset(_ value: CGFloat) -> PEdgeInsets {
44
return PEdgeInsets(top: self.top + value,
5-
left: self.left + value,
6-
bottom: self.bottom + value,
7-
right: self.right + value)
5+
left: self.left + value,
6+
bottom: self.bottom + value,
7+
right: self.right + value)
88
}
99

10-
func insetBy(dx: CGFloat, dy: CGFloat) -> PEdgeInsets {
10+
public func insetBy(dx: CGFloat, dy: CGFloat) -> PEdgeInsets {
1111
return PEdgeInsets(top: self.top + dy, left: self.left + dx, bottom: self.bottom + dy, right: self.right + dx)
1212
}
1313

14-
func minInsets(_ insets: PEdgeInsets) -> PEdgeInsets {
14+
public func minInsets(_ insets: PEdgeInsets) -> PEdgeInsets {
1515
return PEdgeInsets(top: minValue(self.top, minValue: insets.top),
16-
left: minValue(self.left, minValue: insets.left),
17-
bottom: minValue(self.bottom, minValue: insets.bottom),
18-
right: minValue(self.right, minValue: insets.right))
16+
left: minValue(self.left, minValue: insets.left),
17+
bottom: minValue(self.bottom, minValue: insets.bottom),
18+
right: minValue(self.right, minValue: insets.right))
1919
}
2020

21-
func minInsets(dx: CGFloat, dy: CGFloat) -> PEdgeInsets {
21+
public func minInsets(dx: CGFloat, dy: CGFloat) -> PEdgeInsets {
2222
return PEdgeInsets(top: minValue(self.top, minValue: dy),
23-
left: minValue(self.left, minValue: dx),
24-
bottom: minValue(self.bottom, minValue: dy),
25-
right: minValue(self.right, minValue: dx))
23+
left: minValue(self.left, minValue: dx),
24+
bottom: minValue(self.bottom, minValue: dy),
25+
right: minValue(self.right, minValue: dx))
2626
}
2727

2828
private func minValue(_ value: CGFloat, minValue: CGFloat) -> CGFloat {

0 commit comments

Comments
 (0)