You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dynamic properties are necessary for some Cocoa frameworks. One example is Core Data managed objects subclasses. Currently Swift uses a special attribute @NSManaged for that. “However, unlike @dynamic, the @NSManaged attribute is available only for Core Data support.”
It will be great if Core Data is the only use case of @dynamic. But that’s not true. For example, Core Animation layer subclasses also need @dynamic properties to implement custom animations: https://forums.developer.apple.com/thread/12656. So my suggestion is that @NSManaged should be replaced by a more general attribute matching @dynamic.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 40a8c6b62f2414b3d821607799557a15
Issue Description:
@dynamic properties are necessary for some Cocoa frameworks. One example is Core Data managed objects subclasses. Currently Swift uses a special attribute @NSManaged for that. “However, unlike @dynamic, the @NSManaged attribute is available only for Core Data support.”
It will be great if Core Data is the only use case of @dynamic. But that’s not true. For example, Core Animation layer subclasses also need @dynamic properties to implement custom animations: https://forums.developer.apple.com/thread/12656. So my suggestion is that @NSManaged should be replaced by a more general attribute matching @dynamic.
The text was updated successfully, but these errors were encountered: