Skip to content

Instantly share code, notes, and snippets.

Last active February 3, 2019 20:07
What would you like to do?
public class EventManagedObject: NSManagedObject, ManagedObjectConvertible {
typealias T = Event
func from(object: Event) {
title = object.title
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