Skip to content

Instantly share code, notes, and snippets.

@zenghaojim33
Created September 30, 2017 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zenghaojim33/a6990148ec50f615a9ded22d3d3ed554 to your computer and use it in GitHub Desktop.
Save zenghaojim33/a6990148ec50f615a9ded22d3d3ed554 to your computer and use it in GitHub Desktop.
lazy var editAction : Action<TaskItem,Void> = { this in
return Action { task in
let editViewModel = EditTaskViewModel(task: task, coordinator: this.sceneCoordinator, updateAction: this.onUpdateTitle(task: task))
return this.sceneCoordinator.transition(to:
Scene.editTask(editViewModel), type: .modal)
}
}(self)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment