Skip to content

Commit c9d363a

Browse files
committed
Another close your eyes and pretend all is fine
Is this is not Sendable then static let schemaMetadata on each Model object will error out in Swift 6. But this can't be truly Sendable because of AnyKeyPath.
1 parent 7ce2bfb commit c9d363a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ManagedModels/PersistentModel/PropertyMetadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public extension NSManagedObjectModel {
1313
* All (code defined) properties of the ``NSManagedObjectModel`` are stored
1414
* in the `schemaMetadata` static property.
1515
*/
16-
struct PropertyMetadata {
16+
struct PropertyMetadata: @unchecked Sendable {
1717

1818
/// The name of the property instance variable, e.g. `street`.
1919
public let name : String

0 commit comments

Comments
 (0)