DEV Community

Realm Database Guide - Building a Note app in Swift for iOS

Jordan Osterberg on January 04, 2019

If you prefer videos over written articles, this article is a written version of a video I produced. The content is identical. This video is t...
Collapse
 
lianahaque profile image
Liana Haque

What's the difference between the DataSource and NoteDataSource? I've seen other projects use a DataSource or a RealmManager in order to create generic functions but I was curious as to why there were separate protocols for the DataSource.

Collapse
 
jordanosterberg profile image
Jordan Osterberg

DataSource is the generic protocol for storing data, and NoteDataSource is the implementation for the Note data type.

Collapse
 
lianahaque profile image
Liana Haque

Thanks, Jordan!

Collapse
 
r_a_chalmers profile image
Robert A. Chalmers

Sorry. I can't get it to "import RealmSwift"