File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 55#if !canImport(Darwin)
66// Foundation does not provide Hashable conformance for CG types yet.
77// See https://github.com/swiftlang/swift-corelibs-foundation/issues/5275
8- extension CGPoint : Hashable {
8+ public import Foundation
9+
10+ extension CGPoint : Swift . Hashable {
911 public func hash( into hasher: inout Hasher ) {
1012 hasher. combine ( x)
1113 hasher. combine ( y)
1214 }
1315}
1416
15- extension CGSize : Hashable {
17+ extension CGSize : Swift . Hashable {
1618 public func hash( into hasher: inout Hasher ) {
1719 hasher. combine ( width)
1820 hasher. combine ( height)
1921 }
2022}
2123
22- extension CGRect : Hashable {
24+ extension CGRect : Swift . Hashable {
2325 public func hash( into hasher: inout Hasher ) {
2426 hasher. combine ( origin)
2527 hasher. combine ( size)
You can’t perform that action at this time.
0 commit comments