Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@objc(EventManagedObject)
public class EventManagedObject: NSManagedObject, ManagedObjectConvertible {
typealias T = Event
func from(object: Event) {
title = object.title
date = object.date
}
func toObject() -> Event {
return Event(
title: title ?? "",
lastDate: date,
identifier: identifier
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.