Skip to content

Instantly share code, notes, and snippets.

View zenghaojim33's full-sized avatar
🦄

Anson zenghaojim33

🦄
View GitHub Profile
//
// Quadruple.swift
// PingBa
//
// Created by Anson on 2018/6/5.
// Copyright © 2018年 Zoeker.Inc. All rights reserved.
//
import Foundation
import Eureka
@zenghaojim33
zenghaojim33 / UserInfoCell.swift
Created May 4, 2018 16:30 — forked from mats-claassen/UserInfoCell.swift
Example of an Eureka custom row
//
// UserInfoCell.swift
//
// Created by Mathias Claassen on 30/8/16.
// Copyright © 2016 Xmartlabs. All rights reserved.
//
import Foundation
import Eureka
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)