Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74bfa26 commit e96080bCopy full SHA for e96080b
Sources/ManagedModels/PersistentModel/PersistentIdentifier.swift
@@ -1,21 +1,27 @@
1
//
2
// Created by Helge Heß.
3
-// Copyright © 2023 ZeeZide GmbH.
+// Copyright © 2023-2024 ZeeZide GmbH.
4
5
6
import CoreData
7
8
public typealias PersistentIdentifier = NSManagedObjectID
9
10
-extension NSManagedObjectID: Identifiable {
11
-
+#if compiler(>=6)
+extension NSManagedObjectID: @retroactive Identifiable, @retroactive Encodable {
12
+}
13
+#else
14
+extension NSManagedObjectID: Identifiable, Encodable {}
15
+#endif
16
+
17
+extension NSManagedObjectID {
18
public typealias ID = NSManagedObjectID
19
20
@inlinable
21
public var id: Self { self }
22
}
23
-extension NSManagedObjectID: Encodable {
24
25
26
27
public func encode(to encoder: Encoder) throws {
0 commit comments