Data-swift / ManagedModels

A SwiftData like `@Model` infrastructure for CoreData.
https://www.alwaysrightinstitute.com/managedmodels/
Apache License 2.0
101 stars 3 forks source link

Xcode 15.2 compilation issue #26

Closed admkopec closed 8 months ago

admkopec commented 8 months ago

As per issue #25, while compiling with Xcode 15.2 "Expansion of macro '_PersistedProperty()' produced an unexpected setter" error is generated. This pull request aims to fix the error by removing the names: named(init) part from @attached(accessor, names: named(init)) macro declaration for _PersistedProperty.

@helje5 please make sure that I am right and this names is not strictly necessary in the declaration, as my knowledge of Swift Macros is limited.

helje5 commented 8 months ago

Makes sense and works again. Thanks a lot