Skip to content

Commit ff22a5b

Browse files
committed
Fix bug in CGRect.bottomTrailing
1 parent 96a3278 commit ff22a5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/LayoutInspector/Geometry.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ extension CGRect {
5757
}
5858

5959
var bottomTrailing: CGPoint {
60-
get { CGPoint(x: maxX, y: minY) }
60+
get { CGPoint(x: maxX, y: maxY) }
6161
set {
62-
let delta = newValue - CGPoint(x: maxX, y: minY)
62+
let delta = newValue - CGPoint(x: maxX, y: maxY)
6363
size.width += delta.width
6464
size.height += delta.height
6565
self = self.standardized

0 commit comments

Comments
 (0)