Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-914] Swift needs @dynamic support #43526

Open
an0 mannequin opened this issue Mar 10, 2016 · 0 comments
Open

[SR-914] Swift needs @dynamic support #43526

an0 mannequin opened this issue Mar 10, 2016 · 0 comments

Comments

@an0
Copy link
Mannequin

an0 mannequin commented Mar 10, 2016

Previous ID SR-914
Radar rdar://problem/22595617
Original Reporter @an0
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s
Labels Improvement
Assignee None
Priority Medium

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.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants