|
2 | 2 | public extension PEdgeInsets { |
3 | 3 | public func inset(_ value: CGFloat) -> PEdgeInsets { |
4 | 4 | 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) |
8 | 8 | } |
9 | 9 |
|
10 | | - func insetBy(dx: CGFloat, dy: CGFloat) -> PEdgeInsets { |
| 10 | + public func insetBy(dx: CGFloat, dy: CGFloat) -> PEdgeInsets { |
11 | 11 | return PEdgeInsets(top: self.top + dy, left: self.left + dx, bottom: self.bottom + dy, right: self.right + dx) |
12 | 12 | } |
13 | 13 |
|
14 | | - func minInsets(_ insets: PEdgeInsets) -> PEdgeInsets { |
| 14 | + public func minInsets(_ insets: PEdgeInsets) -> PEdgeInsets { |
15 | 15 | 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)) |
19 | 19 | } |
20 | 20 |
|
21 | | - func minInsets(dx: CGFloat, dy: CGFloat) -> PEdgeInsets { |
| 21 | + public func minInsets(dx: CGFloat, dy: CGFloat) -> PEdgeInsets { |
22 | 22 | 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)) |
26 | 26 | } |
27 | 27 |
|
28 | 28 | private func minValue(_ value: CGFloat, minValue: CGFloat) -> CGFloat { |
|
0 commit comments