Skip to content

Instantly share code, notes, and snippets.

View ThePragmaticArt's full-sized avatar

TheCodingArt ThePragmaticArt

View GitHub Profile
import Foundation
import RealmSwift
public extension CodingUserInfoKey {
// Helper property to retrieve the context
static let realm = CodingUserInfoKey(rawValue: "realm")!
static let template = CodingUserInfoKey(rawValue: "template")!
}
public typealias DecodableManagedObject = DecoderUpdatable & ManagedObject & Decodable