This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyHashable: Hashable { | |
var dumped: String { | |
var str = String() | |
dump(self, to: &str) | |
return str | |
} | |
static func == (lhs: MyHashable, rhs: MyHashable) -> Bool { | |
lhs.dumped == rhs.dumped | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
@propertyWrapper | |
struct Injection<T> { | |
var wrappedValue: T | |
init() { | |
self.wrappedValue = DependencyContainer.getDependency() | |
} | |
} |