Skip to content

Commit 75dcb28

Browse files
authored
Merge pull request #10120 from moiseev/cgrect-xy
[overlay] Add unavailble x/y to CGRect to redirect to minX/minY
2 parents 69aca7a + 6738a2a commit 75dcb28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/SDK/CoreGraphics/CoreGraphics.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ public extension CGRect {
375375
from: fromEdge)
376376
return (slice, remainder)
377377
}
378+
379+
@available(*, unavailable, renamed: "minX")
380+
public var x: CGFloat { return minX }
381+
382+
@available(*, unavailable, renamed: "minY")
383+
public var y: CGFloat { return minY }
378384
}
379385

380386
extension CGRect : CustomReflectable, CustomPlaygroundQuickLookable {

0 commit comments

Comments
 (0)