Add font infrastructure

This commit is contained in:
Guille Gonzalez
2025-12-31 17:22:20 +01:00
parent 5e8e93b53e
commit fbfc1d0ecf
9 changed files with 674 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
import Foundation
final class KeyBox<Value: Hashable>: NSObject {
let wrappedValue: Value
init(_ wrappedValue: Value) {
self.wrappedValue = wrappedValue
}
override var hash: Int {
var hasher = Hasher()
hasher.combine(wrappedValue)
return hasher.finalize()
}
override func isEqual(_ object: Any?) -> Bool {
guard let other = object as? KeyBox<Value> else {
return false
}
return wrappedValue == other.wrappedValue
}
}

View File

@@ -1,5 +1,3 @@
// Derived from SwiftMath by Mike Griebling (MIT License)
import SwiftUI
#if canImport(UIKit)

View File

@@ -1,5 +1,3 @@
// Derived from SwiftMath by Mike Griebling (MIT License)
import Foundation
extension String {