Skip to content

Commit

Permalink
Fix some outdated differences in README
Browse files Browse the repository at this point in the history
  • Loading branch information
helje5 committed Oct 10, 2023
1 parent 768502f commit ba55044
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Target>`, a plain `[ Target ]` cannot be
used (yet?). E.g. `var contacts : Set<Contact>`.
- 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)
Expand All @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit ba55044

Please sign in to comment.