CoreData using with modern language Swift