Skip to content

[SR-10476] CGPoint, CGSize, CGRect are Hashable in corelibs-Foundation, but not in Cocoa Foundation #3443

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

Closed
lorentey opened this issue Apr 13, 2019 · 2 comments · Fixed by #5134

Comments

@lorentey
Copy link
Member

Previous ID SR-10476
Radar rdar://problem/49869189
Original Reporter @lorentey
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 8d8d2dac4371a503bd685407e30d08d3

Issue Description:

CGPoint, CGSize and CGRect are declared Hashable in swift-corelibs-foundation, while they're only Equatable in the Core Graphics overlay.

Similarly, NSEdgeInsets is declared Hashable in swift-corelibs-foundation, while it's not even Equatable on Apple platforms.

@belkadan
Copy link

It probably makes sense for them all to be Hashable. (Worth double-checking with someone from CG, though.)

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from swiftlang/swift May 5, 2022
@KYHyeon
Copy link
Contributor

KYHyeon commented Nov 13, 2024

CGSize finally conforms Hashable from iOS18!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants