Skip to content

Commit 706d964

Browse files
committed
Fix missing import
1 parent 4f58a62 commit 706d964

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Sources/OpenCoreGraphics/CGGeometry+Hashable.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@
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)

0 commit comments

Comments
 (0)