Created
January 16, 2020 17:32
-
-
Save nalexn/64b4133a0541468a72e3eb39ccf13c28 to your computer and use it in GitHub Desktop.
Article_008 https://nalexn.github.io/separation-of-concerns/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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