Skip to content

Instantly share code, notes, and snippets.

@PhilippeBoisney
Created March 1, 2017 08:44
Show Gist options
  • Save PhilippeBoisney/f0c3dc15b29179b8df6b296c6f377d3f to your computer and use it in GitHub Desktop.
Save PhilippeBoisney/f0c3dc15b29179b8df6b296c6f377d3f to your computer and use it in GitHub Desktop.
extension RealmCollection where Element == ListeDeCourseStateEntity {
func toModels() -> Array<ListeDeCourseStateModel> {
var list: Array<ListeDeCourseStateModel>= Array<ListeDeCourseStateModel>()
for value in self {
list.append((value as! ListeDeCourseStateEntity).toModel())
}
return list
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment