0

I have a core data generated class called Message. Message has a message property that for some reason is inaccessible in Swift.

You can clearly see the message property here in the header file You can clearly see the message property here in the header file

In a Swift extension of Message I'm unable to access the message property In a Swift extension of Message I'm unable to access the message property

Upon digging around further I found that the property doesn't even exist in the corresponding generated Swift file for Message+CoreDataProperties.h

Upon digging around further I found that the property doesn't even exist in the corresponding generated Swift file for Message+CoreDataProperties.h

Can anyone explain why this happens and how to fix it?

Vikas Shah
  • 23
  • 6

1 Answers1

0

You don't define the type of message, it is a data type, initialize it

JinXiao
  • 1
  • 2
  • The type is defined in the objective-c header. You can see in the first screenshot. `@property (nullable, nonatomic, retain) NSString *message` – Vikas Shah Jul 28 '16 at 15:25