How to extend NSManagedObject in Swift

Hi,

I created a Core Data model for a Swift Project
and take full advantage of the auto-generated subclasses of NSManagedObject.

However I would like now to extend those subclasses because my entities contain several transient attributes.
How can I do that in Swift and keep the possibility to regenerate my NSManagedObjects if changes are made to the xcdatamodeld.
How to extend NSManagedObject in Swift
 
 
Q