Reputation: 5383
In my coreData model I have defined an entity MyEnity
with several attributes. Among them two attibutes :
mute : Boolean
deleted : Boolean
I have a NSManagedObject class associated with MyEntity
. In this class I have :
@NSManaged var mute: NSNumber
@NSManaged var deleted: NSNumber // compilation error
But the second line produces an error and can't be compiled. This is the error I get :
Property 'deleted' with type 'NSNumber' cannot override a property with type 'Bool'
I don't understand what is the issue and why I don't have the same issue for the mute
attribute ?
Upvotes: 1
Views: 310