@@ -121,12 +121,6 @@ ManagedModels has no other dependencies.
121
121
[ ` NSManagedObject ` ] ( https://developer.apple.com/documentation/coredata/nsmanagedobject )
122
122
(superclasses can't be added by macros),
123
123
e.g. ` @Model class Person: NSManagedObject ` .
124
- - ToMany relationships must be a ` Set<Target> ` , a plain ` [ Target ] ` cannot be
125
- used (yet?). E.g. ` var contacts : Set<Contact> ` .
126
- - Properties cannot be initialized in the declaration,
127
- e.g. this doesn't work: ` var uuid = UUID() ` .
128
- Must be done in an initializers (requirement by ` @NSManaged ` ).
129
- - CoreData doesn't seem to support optional Swift base types like ` Int? ` .
130
124
- Uses the CoreData ` @FetchRequest ` property wrapper instead ` @Query ` .
131
125
- Doesn't use the new
132
126
[ Observation] ( https://developer.apple.com/documentation/observation )
@@ -137,13 +131,10 @@ ManagedModels has no other dependencies.
137
131
138
132
#### TODO
139
133
140
- - [x] Archiving/Unarchiving, required for migration.
141
134
- [ ] Figure out whether we can do ordered attributes: [ Issue #1 ] ( https://github.com/Data-swift/ManagedModels/issues/1 ) .
142
- - [x] Figure out whether we can add support for array toMany properties: [ Issue #2 ] ( https://github.com/Data-swift/ManagedModels/issues/2 )
143
135
- [ ] Support for "autosave": [ Issue #3 ] ( https://github.com/Data-swift/ManagedModels/issues/3 )
144
136
- [ ] Support transformable types, not sure they work right yet: [ Issue #4 ] ( https://github.com/Data-swift/ManagedModels/issues/4 )
145
137
- [ ] Generate property initializers if the user didn't specify any inits: [ Issue #5 ] ( https://github.com/Data-swift/ManagedModels/issues/5 )
146
- - [x] Generate ` fetchRequest() ` class function.
147
138
- [ ] Support SchemaMigrationPlan/MigrationStage: [ Issue #6 ] ( https://github.com/Data-swift/ManagedModels/issues/6 )
148
139
- [ ] Write more tests.
149
140
- [ ] Write DocC docs: [ Issue #7 ] ( https://github.com/Data-swift/ManagedModels/issues/7 ) , [ Issue #8 ] ( https://github.com/Data-swift/ManagedModels/issues/8 )
@@ -154,6 +145,9 @@ ManagedModels has no other dependencies.
154
145
- [ ] SwiftUI ` @Query ` property wrapper/macro?: [ Issue 12] ( https://github.com/Data-swift/ManagedModels/issues/12 )
155
146
- [ ] Figure out all the cloud sync options SwiftData has and whether CoreData
156
147
can do them: [ Issue 13] ( https://github.com/Data-swift/ManagedModels/issues/13 )
148
+ - [x] Archiving/Unarchiving, required for migration.
149
+ - [x] Figure out whether we can add support for array toMany properties: [ Issue #2 ] ( https://github.com/Data-swift/ManagedModels/issues/2 )
150
+ - [x] Generate ` fetchRequest() ` class function.
157
151
- [x] Figure out whether we can allow initialized properties
158
152
(` var title = "No Title" ` ): [ Issue 14] ( https://github.com/Data-swift/ManagedModels/issues/14 )
159
153
0 commit comments