Students Save 30%! Learn & create with unlimited courses & creative assets Students Save 30%! Save Now

3.1 Introducing a Repository

Whenever you are dealing with storing data in your app, you want to be sure that you are doing your best not to mix up data access logic with your business/application logic. This is one of the biggest problems that can make an app difficult to maintain. In this lesson, I'll show you an example of how to abstract the Realm-specific code into a special data access class referred to as a "repository".