I'm not sure about best practice of Swift and CoreData. Do you think that not null property should be optional basically?
for example
import Foundation
import CoreData
class Item: NSManagedObject {
@NSManaged var itemId: String // Not null property
@NSManaged var itemPrice: String? // null is possible
}
I wonder that I should notify to other programmers which property is not-null or not.
I would like to know what do you do usually. This question sound an opinion-based but I'm sure how dealing the optional is helpful for others.
FYI I found similar question