WIP: SwiftUI utils

This commit is contained in:
John Estropia
2020-12-26 19:21:46 +09:00
parent 477f478d85
commit 9406901b28
5 changed files with 138 additions and 0 deletions

View File

@@ -86,6 +86,11 @@ public struct ObjectSnapshot<O: DynamicObject>: ObjectRepresentation, Hashable {
let context = transaction.unsafeContext()
return ObjectSnapshot<O>(objectID: self.id, context: context)
}
public func cs_dataStack() -> DataStack? {
return self.context.parentStack
}
// MARK: Equatable