Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created May 26, 2018 12:53
Show Gist options
  • Save vialyx/740885a9a60f1de8763147d86be46354 to your computer and use it in GitHub Desktop.
Save vialyx/740885a9a60f1de8763147d86be46354 to your computer and use it in GitHub Desktop.
import Foundation
final class TaskListModel: TaskListModelInput {
weak var output: TaskListModelOutput!
var card: CardDataModel!
init() {
card = CardDataModel.mock(option: 0)
}
func upload(image: Data, for task: TaskDataType) {
DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) { [weak output] in
output?.didUpdate(task: task)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment