I have noticed the date and string attributes are always created as optionals in swift in auto-generated classes even when optional attribute is not selected.
In the apple documentation also, all Date and string are shown as optional in example
In Swift, you declare the properties using the @NSManaged keyword:
class MyManagedObject: NSManagedObject {
}
Currently using swift 3.2 I dont want certain string attributes to be non- optional. How do I fix this?