(first noticed on: Xcode 8.2.1, iOS 10, Swift 3) (still present as of: Xcode 9 beta 3, iOS11, Swift 4)
We all know that the Core Data concept of o
Core Data
o
I could use Objective-C types to manage these cases. In these cases, for scalars types, you can use NSNumber.
@NSManaged public var myDouble: NSNumber?
In the model myDouble is an optional double with nil value by default.
To get the real value you only need to use:
myEntity.myDouble?.doubleValue