Skip to content

Commit

Permalink
Another close your eyes and pretend all is fine
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
radianttap committed Mar 23, 2024
1 parent 7ce2bfb commit c9d363a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public extension NSManagedObjectModel {
* All (code defined) properties of the ``NSManagedObjectModel`` are stored
* in the `schemaMetadata` static property.
*/
struct PropertyMetadata {
struct PropertyMetadata: @unchecked Sendable {

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

0 comments on commit c9d363a

Please sign in to comment.