Closed GaeaUni closed 2 years ago
resolver.register(NSObject.self) { return UIView() }
let o = resolver.resolve(NSObject.self)
if explicit use type assertion ,the result will crash, but I really need it be NSObject
This is in the current branch. Will be in next release.
resolver.register(NSObject.self) { return UIView() }
let o = resolver.resolve(NSObject.self)
if explicit use type assertion ,the result will crash, but I really need it be NSObject