This commit is contained in:
John Estropia committed 2019-10-29 20:18:14 +09:00
1 parent c112a84c0a
commit 6b9a4b480b
4 files changed
+23 -10

No files matched your search

+1 -1
View File
@@ -356,7 +356,7 @@ extension ObjectPublisher where O: NSManagedObject {
public func value<V: AllowedObjectiveCKeyPathValue>(forKeyPath keyPath: KeyPath<O, V>) -> V! {
let key = String(keyPath: keyPath)
return self.snapshot?.dictionaryForValues()[key] as! V?
return self.snapshot?.dictionaryForValues()[key] as? V
}
}