From ba55044325b66d8fbca325ad5f8181655345583a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helge=20He=C3=9F?= Date: Tue, 10 Oct 2023 15:25:42 +0200 Subject: [PATCH] Fix some outdated differences in README --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 657753c..e8d9bad 100644 --- a/README.md +++ b/README.md @@ -121,12 +121,6 @@ ManagedModels has no other dependencies. [`NSManagedObject`](https://developer.apple.com/documentation/coredata/nsmanagedobject) (superclasses can't be added by macros), e.g. `@Model class Person: NSManagedObject`. -- ToMany relationships must be a `Set`, a plain `[ Target ]` cannot be - used (yet?). E.g. `var contacts : Set`. -- Properties cannot be initialized in the declaration, - e.g. this doesn't work: `var uuid = UUID()`. - Must be done in an initializers (requirement by `@NSManaged`). -- CoreData doesn't seem to support optional Swift base types like `Int?`. - Uses the CoreData `@FetchRequest` property wrapper instead `@Query`. - Doesn't use the new [Observation](https://developer.apple.com/documentation/observation) @@ -137,13 +131,10 @@ ManagedModels has no other dependencies. #### TODO -- [x] Archiving/Unarchiving, required for migration. - [ ] Figure out whether we can do ordered attributes: [Issue #1](https://github.com/Data-swift/ManagedModels/issues/1). -- [x] Figure out whether we can add support for array toMany properties: [Issue #2](https://github.com/Data-swift/ManagedModels/issues/2) - [ ] Support for "autosave": [Issue #3](https://github.com/Data-swift/ManagedModels/issues/3) - [ ] Support transformable types, not sure they work right yet: [Issue #4](https://github.com/Data-swift/ManagedModels/issues/4) - [ ] Generate property initializers if the user didn't specify any inits: [Issue #5](https://github.com/Data-swift/ManagedModels/issues/5) -- [x] Generate `fetchRequest()` class function. - [ ] Support SchemaMigrationPlan/MigrationStage: [Issue #6](https://github.com/Data-swift/ManagedModels/issues/6) - [ ] Write more tests. - [ ] 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. - [ ] SwiftUI `@Query` property wrapper/macro?: [Issue 12](https://github.com/Data-swift/ManagedModels/issues/12) - [ ] Figure out all the cloud sync options SwiftData has and whether CoreData can do them: [Issue 13](https://github.com/Data-swift/ManagedModels/issues/13) +- [x] Archiving/Unarchiving, required for migration. +- [x] Figure out whether we can add support for array toMany properties: [Issue #2](https://github.com/Data-swift/ManagedModels/issues/2) +- [x] Generate `fetchRequest()` class function. - [x] Figure out whether we can allow initialized properties (`var title = "No Title"`): [Issue 14](https://github.com/Data-swift/ManagedModels/issues/14)