-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Implement basic geometry functions #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
extension CGSize: Equatable { } | ||
|
||
public func ==(lhs: CGSize, rhs: CGSize) -> Bool { | ||
return (lhs.width == rhs.width) && (lhs.height == lhs.height) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lhs.height == lhs.height
is always true. You want lhs.height == rhs.height
Let's rebase this after incorporating @johankool 's comments so we can merge it in. Thanks! |
Done, thanks! |
@@ -66,6 +88,12 @@ public struct CGRect { | |||
} | |||
} | |||
|
|||
extension CGRect: Equatable { } | |||
|
|||
public func ==(lhs: CGRect, rhs: CGRect) -> Bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This functionality on Darwin actually lives in CoreGraphics not in Foundation
Looks fine to me. |
Implement basic geometry functions
[test] Remove defunct `static var allTests` everywhere
Add integration test for testing SwiftPM's code coverage support
[pull] swiftwasm from master
Implemented some basic geometry functions