Skip to content

Instantly share code, notes, and snippets.

@nalexn
Created January 16, 2020 17:32
Show Gist options
  • Save nalexn/64b4133a0541468a72e3eb39ccf13c28 to your computer and use it in GitHub Desktop.
Save nalexn/64b4133a0541468a72e3eb39ccf13c28 to your computer and use it in GitHub Desktop.
struct DummyListRepository: ListRepository {
func loadList(completion: @escaping ([Item], Error?) -> Void) {
DispatchQueue.main.async {
let list = [
Item(id: "1", name: "First item"),
Item(id: "2", name: "Second item")
]
completion(list, nil)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment