-
Notifications
You must be signed in to change notification settings - Fork 7
How to specify default value of attribute? #17
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Comments
Maybe some
|
The develop branch should actually support Like: |
You can also set the default values in an initialiser, like:
|
Issue #14 is related, it is about adding support for direct Swift initialisers, like: var followers = 0 Which might be possible, not 100% sure yet. |
This is working, project now compiles. |
If I do this in
@Model
class,I get
@NSManaged property cannot have an initial value
.I see in the expanded macro that schema metadata picks this up correctly but not sure how to force the compiler to allow this.
The text was updated successfully, but these errors were encountered: