mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-20 16:44:08 +01:00
fix casting issues
This commit is contained in:
@@ -272,9 +272,9 @@ public enum TransformableContainer<O: CoreStoreObject> {
|
||||
}
|
||||
}
|
||||
|
||||
internal var valueForSnapshot: Any {
|
||||
internal var valueForSnapshot: Any? {
|
||||
|
||||
return self.value as Any
|
||||
return self.value
|
||||
}
|
||||
|
||||
|
||||
@@ -380,7 +380,7 @@ public enum TransformableContainer<O: CoreStoreObject> {
|
||||
|
||||
return customGetter(PartialObject<O>(object))
|
||||
}
|
||||
return object.value(forKey: self.keyPath) as? V
|
||||
return object.value(forKey: self.keyPath) as! V?
|
||||
}
|
||||
}
|
||||
set {
|
||||
@@ -489,14 +489,14 @@ public enum TransformableContainer<O: CoreStoreObject> {
|
||||
}
|
||||
customSetter(
|
||||
PartialObject<O>(rawObject),
|
||||
newValue as? V
|
||||
newValue as! V?
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
internal var valueForSnapshot: Any {
|
||||
internal var valueForSnapshot: Any? {
|
||||
|
||||
return self.value as Any
|
||||
return self.value
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user