Skip to content

Commit e43bc7e

Browse files
authored
Merge pull request #6992 from moiseev/cgvector
2 parents cc28774 + 441d2c0 commit e43bc7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/SDK/CoreGraphics/CoreGraphics.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ public func == (lhs: CGVector, rhs: CGVector) -> Bool {
313313
return lhs.dx == rhs.dx && lhs.dy == rhs.dy
314314
}
315315

316+
extension CGVector : CustomDebugStringConvertible {
317+
public var debugDescription : String {
318+
return "(\(dx), \(dy))"
319+
}
320+
}
316321

317322
public extension CGRect {
318323
static var zero: CGRect {

0 commit comments

Comments
 (0)