We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e459c commit be8d8d6Copy full SHA for be8d8d6
Sources/SwiftDataKit/SwiftData/PersistentModel.swift
@@ -13,8 +13,7 @@ import SwiftData
13
public extension PersistentModel {
14
/// Returns the `NSManagedObject` associated with the `PersistentModel`.
15
///
16
- /// - Returns: The `NSManagedObject` instance.
17
- /// - Throws: A fatal error if the `NSManagedObject` cannot be retrieved.
+ /// - Returns: The `NSManagedObject?` instance.
18
var managedObject: NSManagedObject? {
19
guard let object = getMirrorChildValue(of: persistentBackingData, childName: "_managedObject") as? NSManagedObject else {
20
return nil
0 commit comments